Is your feature request related to a problem? Please describe.
When you define a compile time interface check like var _ SomeInterface = (*MyType)(nil) and hover over MyType then quick fix to implement SomeInterface the generated methods on MyType have comments with out [] on the interface name.
ie
// DoSomething implements SomeInterface.
func (x *MyType) DoSomething() {
}
Should be:
// DoSomething implements [SomeInterface].
func (x *MyType) DoSomething() {
}
Describe the solution you'd like
It should put the interface name in [] so that it is a documentation link.
https://tip.golang.org/doc/comment#package
The square brackets in [path/filepath] create a documentation link.
Describe alternatives you've considered
Manually having to add [] every time code is generated.
Additional context Add any other context or screenshots about the feature request here.
Comment From: h9jiang
I think this is reasonable nice to have. Moving it to gopls.
Comment From: mknyszek
CC @golang/tools-team
Comment From: gopherbot
Change https://go.dev/cl/706475 mentions this issue: tools/gopls: add doc link for quick fix implement method