Doc Links has been added to the go in 1.19 and it is accessible in the AST. Enabling refactoring of DocLinks will improve the maintainability of documentation.
What version of Go are you using (go version)?
$ go version
go version go1.19.1 windows/amd64
$ gopls version
golang.org/x/tools/gopls v0.11.0
$ vscode-go v0.37
What did you do?
typeFoostruct {
}
// struct [Foo] is a nice struct ...
Refactor "Foo" to "Bar"
What did you expect to see?
typeBarstruct {
}
// struct [Bar] is a nice struct ...
What did you see instead?
typeBarstruct {
}
// struct [Foo] is a nice struct ...
The text was updated successfully, but these errors were encountered:
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Jan 3, 2023
findleyr
changed the title
x/tools/gopls: gopls should handle go1.19's Doc Links
x/tools/gopls: gopls renaming should handle go1.19's Doc Links
Jan 4, 2023
Doc Links has been added to the go in 1.19 and it is accessible in the AST. Enabling refactoring of DocLinks will improve the maintainability of documentation.
What version of Go are you using (
go version
)?What did you do?
Refactor "Foo" to "Bar"
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: