x/tools/gopls: unkeyed struct literals are not returned by Reference #43995
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
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?
Consider the input:
With the cursor on the
f2
ofb.f2
on line 10, issuing aReference
call gives two locations: the declaration on line 5, and the usage under the cursor on line 10. The implicit reference to that field on line 9 is not included.What did you expect to see?
The implicit reference on line 9 to also be returned.
What did you see instead?
As above.
Logs:
Ref: govim/govim#1016
cc @stamblerre
FYI @leitzler @eliasnaur
The text was updated successfully, but these errors were encountered: