We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca4ec4 commit b845193Copy full SHA for b845193
private/buf/buflsp/server.go
@@ -22,6 +22,7 @@ import (
22
"strings"
23
"unicode/utf16"
24
25
+ "buf.build/go/standard/xslices"
26
"github.com/bufbuild/buf/private/buf/bufformat"
27
"github.com/bufbuild/protocompile/experimental/ir"
28
"github.com/bufbuild/protocompile/parser"
@@ -442,7 +443,9 @@ func (s *server) References(
442
443
if symbol == nil {
444
return nil, nil
445
}
- return symbol.References(), nil
446
+ // TODO: Determine why we have duplicate references here, and fix that instead of deduplicating at
447
+ // this level.
448
+ return xslices.Deduplicate(symbol.References()), nil
449
450
451
// Completion is the entry point for code completion.
0 commit comments