x/tools/gopls: textDocument/completion suggests internal packages from other modules #45707
Labels
Documentation
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 version
vscode-go version
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'll take
Tag
fromgolang.org/x/text/language
as an example.language.Tag
What did you expect to see?
I expect to not see suggestions for
internal
packages fromgolang.org/x
when I'm working inside my own modules since these imports will be restricted and cannot be used.What did you see instead?
Sometimes (actually quite a lot of times) first suggestion comes from
x/text/internal/language
instead ofx/text/language
.gopls trace
The text was updated successfully, but these errors were encountered: