x/tools/gopls: gopls not properly interpreting build.directoryFilters
#71303
Labels
gopls/metadata
Issues related to metadata loading in gopls
gopls
Issues related to the Go language server, gopls.
ToolProposal
Issues describing a requested change to a Go tool or command-line program.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
go env
What did you do?
In VSCode, set
And then in
go/example/example.go
, have a function with an unused parameterWhat did you see happen?
gopls still reports unusedparams error on example.go
What did you expect to see?
I expected to see no report of unusedparams errors in example.go.
Note, if
+go
is removed from thebuild.directoryFilters
paths, it no longer shows, but of course this disables gopls entirely on my codebase which is not desirable.Based on docs,
build.directoryFilters
seems intended to allow excluding a subdirectory like this:Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: