Skip to content

Commit 26906d7

Browse files
blah
1 parent 2166603 commit 26906d7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/LanguageServer/Protocol/Handler/References/FindUsagesLSPContext.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Collections.Generic;
77
using System.Collections.Immutable;
88
using System.Diagnostics;
9+
using System.Text;
910
using System.Threading;
1011
using System.Threading.Tasks;
1112
using 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.

0 commit comments

Comments
 (0)