Skip to content

Expose glyphMargin support to extensions #47559

Closed as duplicate
Closed as duplicate

Description

@eamodio

It would be great if extension were able to use the built-in glyphMargin decorations -- i.e. clickable decorations in the gutter.

Activity

  1. vscodebot commented on Apr 10, 2018

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. added
    feature-request
    on Apr 10, 2018
  3. eamodio commented on Oct 18, 2018

    @eamodio
    ContributorAuthor

    Is this something a PR would be accepted for? /cc Johannes Rieken (@jrieken)

  4. jrieken commented on Oct 18, 2018

    @jrieken
    Contributor
  5. alexdima commented on Oct 23, 2018

    @alexdima
    Member

    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).

  6. Relequestual commented on Oct 9, 2019

    @Relequestual

    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.

  7. Relequestual commented on Oct 9, 2019

    @Relequestual

    It LOOKS like extensiosn CAN already put glyphs in the margin, so THAT isn't an issue anymore.

  8. connectdotz commented on May 25, 2020

    @connectdotz

    It LOOKS like extensiosn CAN already put glyphs in the margin, so THAT isn't an issue anymore.

    Ben Hutton (@Relequestual) can you share which api does this?

  9. ppezaris commented on Jan 12, 2021

    @ppezaris

    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.

  10. eamodio commented on Jan 29, 2021

    @eamodio
    ContributorAuthor
  11. vs-code-engineering commented on Nov 6, 2026

    @vs-code-engineering
    Contributor

    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.

  12. added
    *duplicate
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicateapifeature-request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions