Skip to content

x/tools/gopls: annotations for implementations of interfaces #56695

Open
golang/vscode-go
#3561
@trivial-zero

Description

@trivial-zero

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions