-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Description
The cmd/gorename tool long predates the LSP and gopls, and its functionality has since been subsumed by them. We should deprecate and delete the command, following the sequence used for go/pointer in #59676.
Example of using gopls as a batch renaming tool:
$ cat a.go
package main
func main() {
f()
}
func f() {}
$ gopls rename -write ./a.go:#42 g
$ cat a.go
package main
func main() {
g()
}
func g() {}
gopls doesn't support the symbolic command-line syntax for choosing the symbol to rename:
I wonder how many people actually use it, instead of specifying the symbol by position (e.g. byte offset 42 in the example above).
dmitshur
Metadata
Metadata
Assignees
Type
Projects
Status
Accepted