x/tools/gopls: rename things declared in other package fails #36743
Labels
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 are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
Tried to rename a const declared in another package. Consider the following structure:
Moving the cursor to
Abc
inmain.go
and rename it toXyz
will produce the following error (full log below):What did you expect to see?
The const renamed to Xyz in both files (as it is if I initiate the rename from the declaration in
bar/bar.go
).What did you see instead?
Full log:
The text was updated successfully, but these errors were encountered: