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

[FEATURE] - Display label text on icon click in the gutter #688

Open
nolimitdev opened this issue Jan 11, 2024 · 1 comment
Open

[FEATURE] - Display label text on icon click in the gutter #688

nolimitdev opened this issue Jan 11, 2024 · 1 comment

Comments

@nolimitdev
Copy link

nolimitdev commented Jan 11, 2024

Since similar feature requests were closed because of missing VSCode API with hover over the icon in the gutter (with the line numbers) Im adding new feature request but with "click" not "hover" because as mentioned here #661 (comment) mouse click API was added.

@alefragnani
Copy link
Owner

Hi @nolimitdev ,

The mouse click that it referes to corresponds to the right click, in order to display the context menu. It is not the regular mouse click, unfortunately.

I was reevaluating the open issues about displaying labeled bookmarks, playing a bit with the current APIs and noticed that besides #602, a hover (like https://code.visualstudio.com/api/language-extensions/programmatic-language-features#show-hovers) could be added the bookmarked lines. But in order to avoid mixing bookmark labels with already existing source code hovers, maybe the bookmark hover could be fired in specific regions of the line, like closer to the gutter (first N chars). So, when hovering the mouse on that location, the bookmark label could be displayed.

Other than this, and #602, I see no reasonable way to display the bookmark label inside the source.

Hope this helps

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

No branches or pull requests

2 participants