vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Decorations with gutter icons hide breakpoint icons

Open ArtemGovorov opened this issue 10 years ago • 43 comments

  • VSCode Version: 1.0.0
  • OS Version: any

Steps to Reproduce:

  1. Create a decoration type window.createTextEditorDecorationType({ gutterIconPath: ... }); with an icon, decorate a line.
  2. 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.

ArtemGovorov avatar Apr 28 '16 00:04 ArtemGovorov

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)

image

buzzdan avatar Jun 29 '16 09:06 buzzdan

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.

alexdima avatar Jun 29 '16 11:06 alexdima

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

dotnetprofessional avatar Feb 23 '17 01:02 dotnetprofessional

+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?

ChrisBellew avatar May 23 '17 05:05 ChrisBellew

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??

thelazydogsback avatar Jun 14 '17 00:06 thelazydogsback

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.

breathe avatar Jul 28 '17 21:07 breathe

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

JoshuaKGoldberg avatar Dec 01 '17 22:12 JoshuaKGoldberg

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.

alexdima avatar Dec 04 '17 14:12 alexdima

Cool, looks like 843facb14633ca588d5e44a83e728f674961a2fd fixed this. @ArtemGovorov is that enough to go off of?

JoshuaKGoldberg avatar Apr 08 '18 13:04 JoshuaKGoldberg

@JoshuaKGoldberg Unfortunately, gutter icons decorations in VS Code are apparently rendered by applying class names to the same div, so zIndex is irrelevant:

screen shot 2018-04-09 at 9 48 30 am

ArtemGovorov avatar Apr 08 '18 23:04 ArtemGovorov

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.

CoenraadS avatar Apr 14 '18 12:04 CoenraadS

+1 please fix this issue

jagreehal avatar Jul 02 '18 09:07 jagreehal

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.

crysyn avatar Jul 25 '18 00:07 crysyn

+1 Running into this issue with Wallaby code coverage indicators vs breakpoints.

HerbCaudill avatar Sep 11 '18 11:09 HerbCaudill

+1 Had to stop Wallaby while debugging tests.

timarandras avatar Sep 18 '18 07:09 timarandras

+1 it's really annoying to stop wallaby when I want to debug the application.

mrosberghaus avatar Oct 16 '18 08:10 mrosberghaus

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

thelazydogsback avatar Oct 16 '18 14:10 thelazydogsback

+1

nerdmax avatar Feb 14 '19 05:02 nerdmax

+1

wdaqian avatar Mar 05 '19 11:03 wdaqian

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?

Setadokalo avatar Apr 07 '19 21:04 Setadokalo