You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if extension were able to use the built-in glyphMargin decorations -- i.e. clickable decorations in the gutter.
Reacted by Brian Canzanella, Peter Pezaris, flexiworld, Justin M. Keyes, luispDesktop, BoShen, AKclown, Kamil Podsiadło, Aaron Grossman, heartacker and 4 more
The glyph margin is problematic because we have potentially N decorations fighting for the rendering space of 1 decoration. It is unclear when N > 1 which of the decorations should win (in terms of rendering and of interaction).
What I would like to personaly see is the ability to modify the default click action (via settings of course).
I don't need click for breakpoint, but I WOULD like click to add bookmark.
The glyph margin is problematic because we have potentially N decorations fighting for the rendering space of 1 decoration. It is unclear when N > 1 which of the decorations should win (in terms of rendering and of interaction).
perhaps this could be solved with an indicator that there are multiple glyphs, and then when the mouse hovers over, fan them out so they can be selected individually. we actually implemented something like this in the Atom editor years ago and it worked out very well.
Reacted by Nigel Scott, Danny McGee and Zerun Tian
Thanks for the request. Extensions can already render gutter icons with gutterIconPath and contribute right-click actions through editor/lineNumber/context, but those do not provide direct click actions on their decorations. That remaining capability is tracked in #224134, including coexistence with breakpoints and overlapping icons; this thread also contributes the bookmark-click use case and the concern about which decoration receives interaction.
This issue was closed automatically as a duplicate of #224134: the VS Code sweeper proposed it and an independent second review confirmed it. If this is a different problem, reply here or reopen the issue and a maintainer will take a look.
Activity
vscodebot commentedon Apr 10, 2018
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
eamodio commentedon Oct 18, 2018
Is this something a PR would be accepted for? /cc Johannes Rieken (@jrieken)
jrieken commentedon Oct 18, 2018
cc alexandrudima
alexdima commentedon Oct 23, 2018
The glyph margin is problematic because we have potentially N decorations fighting for the rendering space of 1 decoration. It is unclear when N > 1 which of the decorations should win (in terms of rendering and of interaction).
Relequestual commentedon Oct 9, 2019
What I would like to personaly see is the ability to modify the default click action (via settings of course).
I don't need click for breakpoint, but I WOULD like click to add bookmark.
Relequestual commentedon Oct 9, 2019
It LOOKS like extensiosn CAN already put glyphs in the margin, so THAT isn't an issue anymore.
connectdotz commentedon May 25, 2020
Ben Hutton (@Relequestual) can you share which api does this?
ppezaris commentedon Jan 12, 2021
perhaps this could be solved with an indicator that there are multiple glyphs, and then when the mouse hovers over, fan them out so they can be selected individually. we actually implemented something like this in the Atom editor years ago and it worked out very well.
eamodio commentedon Jan 29, 2021
See #114776
vs-code-engineering commentedon Nov 6, 2026
Thanks for the request. Extensions can already render gutter icons with
gutterIconPathand contribute right-click actions througheditor/lineNumber/context, but those do not provide direct click actions on their decorations. That remaining capability is tracked in #224134, including coexistence with breakpoints and overlapping icons; this thread also contributes the bookmark-click use case and the concern about which decoration receives interaction.This issue was closed automatically as a duplicate of #224134: the VS Code sweeper proposed it and an independent second review confirmed it. If this is a different problem, reply here or reopen the issue and a maintainer will take a look.