提交 1b0fad8f 编写于 作者: V Vasily Kirichenko 提交者: Kevin Ransom (msft)

do not filter symbol uses by range length in getSymbolUsesInSolution because...

do not filter symbol uses by range length in getSymbolUsesInSolution because it causes loosing symbol occurrences in Inline Rename (#3762)

Thank you for this.
上级 0bb0a00f
......@@ -67,16 +67,8 @@ module internal SymbolHelpers =
|> Async.Parallel
|> Async.map Array.concat
let declarationLength =
symbol.DeclarationLocation
|> Option.map (fun m -> m.EndColumn - m.StartColumn)
return
(symbolUses
|> Seq.filter (fun su ->
match declarationLength with
| Some declLength -> su.RangeAlternate.EndColumn - su.RangeAlternate.StartColumn = declLength
| None -> true)
|> Seq.collect (fun symbolUse ->
solution.GetDocumentIdsWithFilePath(symbolUse.FileName) |> Seq.map (fun id -> id, symbolUse))
|> Seq.groupBy fst
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册