x/tools/gopls: diagnostics from modules outside go.work
stick around
#48929
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?gopls settings: default
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Note that
go.work
includes onlyb
module, anda/main.go
has an error (V unused
).Open the editor from the top directory.
Then, open
a/main.go
, observegopls
finds the error, and later closea/main.go
.What did you expect to see?
Diagnostics that appear in
a/main.go
(single file mode?) disappear when I closea/main.go
.What did you see instead?
The diagnostics remain forever until I restart gopls.
The text was updated successfully, but these errors were encountered: