File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/LanguageServer/Protocol/Handler/References Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 66using System . Collections . Generic ;
77using System . Collections . Immutable ;
88using System . Diagnostics ;
9+ using System . Text ;
910using System . Threading ;
1011using System . Threading . Tasks ;
1112using Microsoft . CodeAnalysis . Classification ;
@@ -71,6 +72,8 @@ internal sealed class FindUsagesLSPContext : FindUsagesContext
7172 // Unique identifier given to each definition and reference.
7273 private int _id = 0 ;
7374
75+ public StringBuilder Builder = new ( ) ;
76+
7477 public FindUsagesLSPContext (
7578 IProgress < SumType < VSInternalReferenceItem , LSP . Location > [ ] > progress ,
7679 Workspace workspace ,
@@ -158,7 +161,10 @@ public override async ValueTask OnReferencesFoundAsync(IAsyncEnumerable<SourceRe
158161
159162 // If this is reference to the same physical location we've already reported, just
160163 // filter this out. it will clutter the UI to show the same places.
161- if ( ! _referenceLocations . Add ( ( document . FilePath , reference . SourceSpan . SourceSpan ) ) )
164+ var tuple = ( document . FilePath , reference . SourceSpan . SourceSpan ) ;
165+ Builder . AppendLine ( tuple . ToString ( ) ) ;
166+
167+ if ( ! _referenceLocations . Add ( tuple ) )
162168 return ;
163169
164170 // If the definition hasn't been reported yet, add it to our list of references to report.
You can’t perform that action at this time.
0 commit comments