-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Decorations with gutter icons hide breakpoint icons #5923
Comments
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:
@alexandrudima is the "easier" path something a first/second-time contributor could tackle? (any hidden gotchas?) |
I think that could work. |
Cool, looks like 843facb 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 |
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. |
looks like this has been resolved in TestExplorer since v1.59, see the gutter menu below. Is there a way to expose the same feature to extensions? cc @connor4312 |
It looks like the root cause is this function: Where the breakpoint hover/click overlay is explicitly being skipped. While I can kind of see the reasoning -- e.g. not wanting it to look like there is interaction based on the decoration shown, as it will always be about the breakpoint -- at least until #5455 is supported. Maybe there could be a new /cc @hediet as you've been making some recent changes with the 3-way merge support |
I know some UX changes needs a fair amount of exploration and tests, but I wonder why not borrow how other products works.
I mean, it's been 6 years... |
This is something we manually handle in the testing code in VS Code core. We've also discussed this in #114776 |
Sorry please delete - commented on wrong issue |
- They must be kept off by default because of [VSCode #5923](microsoft/vscode#5923). - Bookmark images are taken from https://github.com/microsoft/vscode-icons.
This feature is desperately needed. |
Want to just ping the devs on this again, since it's now 2023. |
Steps to Reproduce:
window.createTextEditorDecorationType({ gutterIconPath: ... });
with an icon, decorate a line.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.The text was updated successfully, but these errors were encountered: