/ go Public
x/tools/gopls: documentHighlight from subpackage selects usage for parent package #60435
Issues related to the Go language server, gopls.
This label describes issues relating to any tools in the x/tools repository.
What version of Go, VS Code & VS Code Go extension are you using?
go versionto get version of Go from the VS Code integrated terminal.
gopls -v versionto get version of Gopls from the VS Code integrated terminal.
code-insiders -vto get version of VS Code or VS Code Insiders.
Go: Locate Configured Go Toolscommand.
gomodifytags: C:\Users\Laci\go\bin\gomodifytags.exe (version: v1.16.0 built with go: go1.20)
impl: C:\Users\Laci\go\bin\impl.exe (version: v1.1.0 built with go: go1.20)
goplay: C:\Users\Laci\go\bin\goplay.exe (version: v1.0.0 built with go: go1.20)
dlv: C:\Users\Laci\go\bin\dlv.exe (version: v1.20.2 built with go: go1.20)
staticcheck: C:\Users\Laci\go\bin\staticcheck.exe (version: v0.4.3 built with go: go1.20)
gopls: C:\Users\Laci\go\bin\gopls.exe (version: v0.11.0 built with go: go1.20)
Share the Go related settings you have added/edited
Preferences: Open Settings (JSON)command to open your settings.json file.
Share all the settings with the
Describe the bug
Use a source file that imports both a parent and a subpackage:
Normally clicking on an imported package and using F7 cycles through its usages. In the case of the subpackage, it also finds the parent package usages.
Expected: Starting from the subpackage import, F7 should cycle through only usages of the subpackage.
Steps to reproduce the behavior:
Screenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.
The text was updated successfully, but these errors were encountered: