x/tools/gopls: symbol returns matches from outside the workspace #37236
Labels
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
What version of Go are you using (
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?
With the following setup:
Called 'Symbol' with a query of
"main"
What did you expect to see?
A single result: the
main
function defined inmain
; because the workspace scope is defined (I think) as the main module.What did you see instead?
Lots of results from outside the workspace (main module) within dependencies:
cc @stamblerre
FYI @leitzler
The text was updated successfully, but these errors were encountered: