x/tools/gopls: rename on a method receiver should rename all receivers for the type #41892
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
gopls
Issues related to the Go language server, gopls.
Refactoring
Issues related to refactoring tools
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?
Initial state:
emacs -nw main.go
main.go:7:6
).M-x eglot-rename
t
) for the method receiver.What did you expect to see?
Per http://golang.org/wiki/CodeReviewComments#receiver-names:
Since the file already satisfied that consistency rule before the rename, I expect it to satisfy that rule after the rename, too: all of the method receivers should have been renamed to the new name entered in step (4).
What did you see instead?
Only the receiver for the one method was renamed.
gopls
log:The text was updated successfully, but these errors were encountered: