x/tools/gopls: documentHighlight from subpackage selects usage for parent package #60435
Labels
Documentation
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, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.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
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
Use a source file that imports both a parent and a subpackage:
import (
...
"net/http"
"net/http/httptest"
...
)
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: