Skip to content

Commit 0ef19ba

Browse files
authored
LSP fix goto definition for imports (#4083)
1 parent 4e3c9f2 commit 0ef19ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

private/buf/buflsp/file.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,10 @@ func (f *file) RefreshIR(ctx context.Context) {
475475
}
476476
for i, file := range files {
477477
file.ir = results[i].Value
478+
if i > 0 {
479+
// Update symbols for imports.
480+
file.IndexSymbols(ctx)
481+
}
478482
}
479483
diagnostics, err := xslices.MapError(
480484
report.Diagnostics,

0 commit comments

Comments
 (0)