x/tools/gopls: reference / hover info / definition not found from test package #48466
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
)?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 file structure below I opened up
foo_test.go
, move cursor tobar.Bar
and tried to go to definition / hover / find references.What did you expect to see?
Results from any of the requests.
What did you see instead?
No results.
It seems like the existence of
other_test.go
is the key here (i.e. both a_test.go
file andpackage foo_test
), if it isn't present everything works as expected.The text was updated successfully, but these errors were encountered: