Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gutter icons indicators #255

Open
kpodsiad opened this issue Feb 13, 2022 · 2 comments
Open

Add gutter icons indicators #255

kpodsiad opened this issue Feb 13, 2022 · 2 comments

Comments

@kpodsiad
Copy link
Member

Is your feature request related to a problem? Please describe.

When browsing source code it's great to have such indicators available in UI, having them helps with understanding code. gutter icons are helpful for:

  • recursive functions
  • inheritance
  • overridden functions
  • and etc.

Describe the solution you'd like

IntelliJ Idea does a wonderful job when it comes to gutter icons, Metals & vscode can aim to achieve a comparable level of support.

From vscode perspective there is a extension sample which uses TextEditor.setDecorations and vscode.window.createTextEditorDecorationType APIs. There is type called DecorationRenderOptions which have gutterIconPath and
https://github.com/microsoft/vscode-extension-samples/tree/main/decorator-sample.

Unfortunately from what I see, although it is possible to create a gutter icon, the click action on it isn't exposed in vscode's API microsoft/vscode#5455, it's used internally in microsoft/vscode#5455 (comment) or microsoft/vscode#5455 (comment)

Describe alternatives you've considered

Overridden functions for instance are handled using code lenses. However, code lenses introduce a bit of noise in text editor since they are displayed in a new line.the

Additional contex

No response

Search terms

vscode gutter icons

@niander
Copy link

niander commented Dec 22, 2023

It seems VSCode has added support for creating action on gutter icons: microsoft/vscode#175945

@tgodzik
Copy link
Contributor

tgodzik commented Dec 27, 2023

Looks like this could work, though it's not super easy. Would be awesome if there would be a way to convert them automatically from code lenses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants