tooltitude / support

Tooltitude Support
https://www.tooltitude.com
Other
21 stars 0 forks source link

Interface icons on line numbers. #20

Open abhimanyu003 opened 1 year ago

abhimanyu003 commented 1 year ago

OS Version: osx VS Code Version: 1.81.1 Go Version: 1.21 Code Repository (if open source):

Feature request:

Is it possible to achieve interface implementation icons similar to those in GoLand (IDEA)?

image

In Visual Studio Code, there's a helpful plugin called 'Error Lens,' available at https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens. This plugin introduces icons for displaying information, errors, and warnings within the editor. We could potentially configure our settings in a similar manner to incorporate these icons seamlessly.

Quick Example

image
tooltitude-support commented 1 year ago

@abhimanyu003 Thanks for your feedback. VS Code has API to do this, and we definitely could do this, though, it would require some changes in how we present usage counts.

abhimanyu003 commented 1 year ago

Hello, I appreciate your positive response. I believe that the usage counts is of lesser importance when it comes to icons. Icons primarily serve as indicators that a particular struct implements an interface. If you check the Goland ( idea ) it only shows you an icon ( without any numbers at all ).

We can keep the rest of the features as they are currently.

tooltitude-support commented 1 year ago

Hello, I appreciate your positive response.

@abhimanyu003 Feel free to submit more suggestions or issues if you have them.

Concerning the request. The biggest challenge is that we use LSP (https://microsoft.github.io/language-server-protocol/) for communication with vscode via the code lens response. It has the text and a link, but doesn't have an icon. For it to work, we need to pass the results in a bit different way. However, we want to have decorations to the left of the editor eventually.

tooltitude-support commented 8 months ago

I researched it more. We could provide icons, but it won't be possible to click on it. There're menus and gutter markers for unit tests, but this is covered by the testing api.

abhimanyu003 commented 8 months ago

IMO it will be fine if we can't click them as There is already text that we can click on. ( as shared in screenshot ). Icons will provide quick visual help while reading a large code base.

2 ref | impls 1 interface | 2 method

image