go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.56k stars 570 forks source link

Renaming an interface method does not rename implementations #2909

Closed glyn closed 6 years ago

glyn commented 6 years ago

To reproduce the problem, take the Go code below, place the caret on the name of the interface method, and invoke Refactor->Rename. Enter another name. Observe that the implementation's method name is unchanged.

type X interface {
    x() // rename this method
}

type A struct {}

func (a A) x() { // and this implementation is not renamed

}
dlsniper commented 6 years ago

I've opened https://youtrack.jetbrains.com/issue/GO-4897 for this to be tracked in GoLand, as that's the official tracker for it. Please follow that for further updates. Thank you!