x/tools/gopls: limited cross references when using with vscode on Go repo #41633
Milestone
Comments
The problem here is that Sorry for the trouble. We are actively working on multi-module workspaces, which we're expecting will get this working automatically. |
Thanks Heschi -- makes sense. Appreciate the help; I'll close out the bug. |
Does .vscode need to be moved into src/cmd also? |
Yes. |
and lo, it worked. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
I am trying to use vscode to develop the Go standard library, as described in https://github.com/golang/vscode-go/blob/master/docs/stdlib.md. While I am able to get vscode up and running, I can't seem to get the correct set of cross references for exported package symbols.
I've attached a small shell script that checks out and builds Go stdlib and gopls, then invokes vscode in the proper spot. In the vscode session, I navigate to /src/cmd/internal/goobj2/objfile.go, then select the symbol PkgIdxSelf on line 142, and then select "Find All References".
What did you expect to see?
A similar operation using "guru" returns this set:
What did you see instead?
Only returns references in the source file (objfile.go).
vscode-xref-repro-shellscript.txt
The text was updated successfully, but these errors were encountered: