x/tools/gopls: autocomplete returns packages within excluded directories (per build.directoryFilters) #52347
Labels
gopls/completion
Issues related to auto-completion in gopls.
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Related to #48939 and reproduced in a repository.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes:
~/git/go-tools$ git log -n 1 commit fe932b4680bd8878524bfea7a12f7cf30e1e0438
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
myl
within a function. The autocomplete list will include a library in thegenerated_stuff
dir, which is included in thebuild.directoryFilters
exclusion list:What did you expect to see?
Packages in generated_stuff shouldn't be included in autocomplete list?
I can't tell if this is working as intended. It came up before in #37697, but I interpret the build.directoryFilters to mean that the generated_stuff folder should be ignored in this context as well: https://github.com/golang/vscode-go/blob/master/docs/settings.md#builddirectoryfilters.
What did you see instead?
mylib
is included in the autocomplete list.The text was updated successfully, but these errors were encountered: