vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

UI: annotations for implementations of interfaces

Open trivial-zero opened this issue 3 years ago • 2 comments

Since go does not have an explicit declaration of which interfaces one implements, it is hard to follow someone's code. I know that there is a command to show all the interfaces, but it is not very intuitive nor efficient.

Goland has the feature of showing a gutter when a function implements an interface. It would be nice to show maybe a codelens over the implementation and the type, or a similar solution as Goland.

Codelens: pasted

Goland: image

I found an extension that does kinda the opposite which is not very helpful in most scenario: galkowskit/go-interface-annotations image

trivial-zero avatar Jun 22 '22 08:06 trivial-zero

That's exactly how rust-analyzer handles traits

2opremio avatar Aug 31 '22 02:08 2opremio

this feature seems exactly what I want.

icearith avatar Sep 02 '22 08:09 icearith