Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b0fad8

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
do not filter symbol uses by range length in getSymbolUsesInSolution because it causes loosing symbol occurrences in Inline Rename (#3762)
Thank you for this.
1 parent0bb0a00 commit1b0fad8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

‎vsintegration/src/FSharp.Editor/LanguageService/SymbolHelpers.fs‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,8 @@ module internal SymbolHelpers =
6767
|> Async.Parallel
6868
|> Async.map Array.concat
6969

70-
letdeclarationLength=
71-
symbol.DeclarationLocation
72-
|> Option.map(fun m-> m.EndColumn- m.StartColumn)
73-
7470
return
7571
(symbolUses
76-
|> Seq.filter(fun su->
77-
match declarationLengthwith
78-
| Some declLength-> su.RangeAlternate.EndColumn- su.RangeAlternate.StartColumn= declLength
79-
| None->true)
8072
|> Seq.collect(fun symbolUse->
8173
solution.GetDocumentIdsWithFilePath(symbolUse.FileName)|> Seq.map(fun id-> id, symbolUse))
8274
|> Seq.groupBy fst

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp