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?
type Foo struct {
}
// struct [Foo] is a nice struct ...
Refactor "Foo" to "Bar"
What did you expect to see?
type Bar struct {
}
// struct [Bar] is a nice struct ...
What did you see instead?
type Bar struct {
}
// struct [Foo] is a nice struct ...
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?