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 5401b58 commit 355a02fCopy full SHA for 355a02f
private/buf/buflsp/completion.go
@@ -680,7 +680,7 @@ func typeReferencesToCompletionItems(
680
symbolFile := symbol.ir.File().Path()
681
_, hasImport := currentImportPaths[symbolFile]
682
var additionalTextEdits []protocol.TextEdit
683
- if !hasImport {
+ if !hasImport && symbolFile != current.ir.Path() {
684
additionalTextEdits = append(additionalTextEdits, protocol.TextEdit{
685
NewText: "import " + `"` + symbolFile + `";` + "\n",
686
Range: protocol.Range{
0 commit comments