Decorations with gutter icons hide breakpoint icons
- VSCode Version: 1.0.0
- OS Version: any
Steps to Reproduce:
- Create a decoration type
window.createTextEditorDecorationType({ gutterIconPath: ... });with an icon, decorate a line. - Set a breakpoint for the line. While the breakpoint works, the decoration type gutter icon is completely hiding it.
Ideally, there should be a way to see both (all) icons. I'm assuming the same issue happens if two different extensions set different icons for the same line. Atom and IntelliJ platform based IDEs solve this by allowing to create a plugin specific gutter/or just extending the gutter horizontally to fit all icons.
If the above mentioned solution is not desirable for some reason, then it should probably be allowed to set a gutter icon zIndex for a decoration type. Or maybe the breakpoint icon should just take precedence and always be displayed above any extensions icons.
Hi guys, Any news on this issue? it's making it much harder to debug like that (i'm used to use the mouse to set a breakpoint)

Today there is space in there for one glyph.
I guess we need to implement an overflow experience in there.
This is a feature-bug, as the code was never designed to handle more than one glyph margin for a line.
+1 on this - I'm experiencing the issue with Wallaby, but I can see that other plugins may be competing for the same real-estate in the future. Visual Studio supports this feature today.
+1 Also am a Wallaby user who would like to see both breakpoints and wallaby line coverage. My thought is that seeing the breakpoint glyph is of higher importance than the coverage glyph, maybe some kind of multiple glyph (with precedence) system would work?
Ignoring the obvious degenerate cases, why not just make the gutter big enough to hold the maximum number of glyphs currently displayed on any line??
New to vscode (really enjoying it so far). Also a fan of wallabyjs and would love to see a feature added to allow more elegant behavior here.
It sounds like there are two main ways this could be resolved:
- Easier, less flexible path: Allowing z-index style ordering so Wallaby icons go below VS Code's
- Complex, better path: Increasing the width of that gutter area
@alexandrudima is the "easier" path something a first/second-time contributor could tackle? (any hidden gotchas?)
I think that could work. IModelDecorationOptions could get a new zIndex property that could be used for sorting in the various places we render decorations.
Cool, looks like 843facb14633ca588d5e44a83e728f674961a2fd fixed this. @ArtemGovorov is that enough to go off of?
@JoshuaKGoldberg Unfortunately, gutter icons decorations in VS Code are apparently rendered by applying class names to the same div, so zIndex is irrelevant:

I just ran into this with my extension, I want to show brackets in the gutter but as long as they block breakpoints it's highly annoying and probably won't be used.
+1 please fix this issue
I would very much like a solution to this as I have just forgotten how much I miss using Bookmarks from VS (which has been my history with VSCode.. what am I missing, go find an extension that does it).
Would there be some way an extension could detect other 'states' for a line like 'there is a breakpoint here' and if so incorporate a combo glyph for display? Just some basic onAddBookmark() { if line(number)->hasBreakPoint { useBreakpointBookmark } else { useBookmark } } .. Or something? I know this would not fix multiple extensions working in conjunction with out some auto-combine capabilities to generate the compiled glyphs.. But it might be a step in a direction.
+1 Running into this issue with Wallaby code coverage indicators vs breakpoints.
+1 Had to stop Wallaby while debugging tests.
+1 it's really annoying to stop wallaby when I want to debug the application.
@mrgrauel @macjuul - you shouldn't need to stop wallaby to debug - you can still set breakpoints via the F9 shortcut (or the ToggleBreakpoint command directly) and it will work - you just won't be able to see the breakpoint markers.
+1
+1
Wait, if gutter icon rendering is handled by applying classes to a div, then couldn't an !important modifier be added to the breakpoint class style? Not the best long term solution, but wouldn't that solve the immediate issue?