x/tools/gopls: codelens to show implementations of interfaces
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:  Goland: <img width="744" alt="image" src="https://user-images.githubusercontent.com/50717946/174978822-cecb02b8-ba0c-4c8f-8f87-3da61ac66eca.png"> I found an extension that does kinda the opposite which is not very helpful in most scenario: [galkowskit/go-interface-annotations](https://github.com/galkowskit/go-interface-annotations) <img width="718" alt="image" src="https://user-images.githubusercontent.com/50717946/174983652-4ad9ef84-13ab-4401-8862-e51f6dd0b1a0.png">
Posted by trivial-zero on Jun 22, 2022, 8:36 AM
Tags
Related issues
- This is the biggest problem with contracts, there's simply no way to actually say "please always execute this check".
- I don't disagree with you on this, I worked my whole life in corporate and haven't worked as a OSS maintainer before, though I will _and ...
- the new VSCode UI, looks cute, i don't like it.
- I've been working on my own private harness for the past 8 months, and I've been collecting ideas from such repos I've stumbled upon.
- The way AI is able to interact with outside resources is pretty impressive, but the quality of code it produces to me is still questionab...
- Add PR-style review comments in Git Diff UI that feed into the active agent thread
Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments
ux (Software)
This is the biggest problem with contracts, there's simply no way to actually say "please always execute this check".
I don't disagree with you on this, I worked my whole life in corporate and haven't worked as a OSS maintainer before, though I will _and ...
the new VSCode UI, looks cute, i don't like it.
I've been working on my own private harness for the past 8 months, and I've been collecting ideas from such repos I've stumbled upon.
The way AI is able to interact with outside resources is pretty impressive, but the quality of code it produces to me is still questionab...
Add PR-style review comments in Git Diff UI that feed into the active agent thread
Thanks for indulging me so far, by the way, I really appreciate this discussion, it's very stimulating.
Migrate GDScript to the GDExtension mechanism and overhaul the implementation
x/tools/gopls: codelens to show implementations of interfaces
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:  Goland: <img width="744" alt="image" src="https://user-images.githubusercontent.com/50717946/174978822-cecb02b8-ba0c-4c8f-8f87-3da61ac66eca.png"> I found an extension that does kinda the opposite which is not very helpful in most scenario: [galkowskit/go-interface-annotations](https://github.com/galkowskit/go-interface-annotations) <img width="718" alt="image" src="https://user-images.githubusercontent.com/50717946/174983652-4ad9ef84-13ab-4401-8862-e51f6dd0b1a0.png">
Comments (0)
No comments yet. Start the discussion.