x/tools/gopls: find-references doesn't always search tests #43144
Labels
Milestone
Comments
Thanks for filing this -- I'm able to reproduce. I think the issue here is that test variants are not included in reverse dependencies because they cannot be found through the Imports map. My first thought is that we could look through the WorkspacePackages and check the value of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On master (d93e913c1a5829629e8005c31b45b96a7b143a16), it seems like find-references doesn't return results from test files unless you've opened the test's package.
Open only foo.go in your editor and run find-references on
Blah
. I expect to get foo.go and bar_test.go, but I only get foo.go:If I jump into bar.go and then run find-references again, it returns all expected results.
The text was updated successfully, but these errors were encountered: