-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Description
What version of Go, VS Code & VS Code Go extension are you using?
go version go1.13.15 linux/amd64
golang.org/x/tools/gopls v0.9.4
golang.org/x/tools/gopls@v0.9.4 h1:YhHOxVi++ILnY+QnH9FGtRKZZrunSaR7OW8/dCp7bBk=
vscode:
Version: 1.70.2 (Universal)
Version Information
- Run
go versionto get version of Go from the VS Code integrated terminal. - Run
gopls -v versionto get version of Gopls from the VS Code integrated terminal. - Run
code -vorcode-insiders -vto get version of VS Code or VS Code Insiders. - Check your installed extensions to get the version of the VS Code Go extension
- Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) >
Go: Locate Configured Go Toolscommand.
Share the Go related settings you have added/edited
see below
Run Preferences: Open Settings (JSON) command to open your settings.json file.
Share all the settings with the go. or ["go"] or gopls prefixes.
{
"go.autocompleteUnimportedPackages": true,
"go.languageServerFlags": [
],
"go.useLanguageServer": true,
"gopls": {
},
}
Describe the bug
Bug description:
Gopls only finds the references on package level, not on module level.
References in other packages can be found/peeked ONLY AFTER I opened certain package and see the reference,
which is useless, because the point of finding all references is it finds all references for me without needing to open
all the packages.
What I expect:
Find all reference finds all references of a function on a module level, it should search all the packages in this module.
Steps to reproduce the behavior:
Use Find all references all Peek references feature on any function in a Go project using go module mode, this happens.
Screenshots or recordings
N/A