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
{{ message }}
Repository navigation
can't create breakpoint on current line because light bulb is in the way #25174
debugDebug viewlet, configurations, breakpoints, adapter issuesunder-discussionIssue is under discussion for relevance, priority, approachuxUser experience issues
There has to be a better way. Make room for both? Don't give me the option to extract a method unless I actually have text selected? 9 times out of 10, when I go to set a breakpoint, it's on the current line. so I nearly always have to move the cursor before I can.
An alternative would be for us to draw the lightbulb in the space between the start of the line and the line number. We currently use at least some of this space to show the block expandos.
No, we would make sure that it fits. I wouldn't want to suggest something that would just make the problem reappear elsewhere. Something like so:
We might also want to fine tune the region lines and expandos so that the expando sits a few pixels closer to the lines.
Basically we would need to spend some time laying out the different pieces of UI so that they fit well without significantly eating into horizontal real estate.
Was going to delete a line of code by selecting it from the margin, Did a double click or so and selected it and put a breakpoint down. Tried to get rid of the breakpoint and an unrendered lightbulb kept giving me its context menu instead of removing the displayed breakpoint.
VSCode Version:
Version 1.13.0-insider (1.13.0-insider) c615b43
2017-05-09T06:02:40.607Z
Just a point of info.. with the way it is now, with the lightbulb showing up almost anywhere - in front of the line with the issue, above the line, below the line, I keep thinking the issue is where the lightbulb is - more often than not above the actual line with the problem... and I more often than not see the bulb over/obscuring text.
The screenshot that Daniel Imms (@Tyriar) posted is a great example - it's hard to know where the issue is, not to mention with the lightbulb plopped on top of the text, it is very confusing and almost gets lost.
Update: With the Insiders build and our pending 0.13.0 C++ extension update, I frequently get the tooltip for the current line covering up the code action for the current line. . The tooltip error can be fixed via the code action, but the tooltip makes the code action hidden/unclickable. Please fix this scenario ASAP. If anything, force the code action (light bulb) and tooltip to not overlap.
This is a rough sketch of how it would look and feel when showing the lightbulb in the hover. I believe it has potential tho needs to much polish for a quick change (in September). Things that should be improved with
only show on errors/warnings
don't show two light bulbs
show the light bulb message next to the error message
That's not bad, but I think the position of the lightbulb itself is the issue. In your picture, if there was any code on line 58, the lightbulb would be drawn over that code, potentially causing confusion as to where the problem is, or even lose the bulb in a mass of text (see Daniel Imms (@Tyriar) 's graphic above)
debugDebug viewlet, configurations, breakpoints, adapter issuesunder-discussionIssue is under discussion for relevance, priority, approachuxUser experience issues
Activity
jrieken commentedon Apr 24, 2017
greay (@greay) You can toggle breakpoints using F9 or the F1 command palette
greay commentedon Apr 24, 2017
that's great, but there's absolutely no feedback when you do that, because the lightbulb is obscuring the breakpoint mark in the gutter.
jrieken commentedon Apr 24, 2017
Yeah, we know that the gutter on the left is not easy to share. Today we have a rule that always respect the icon that came first.
cc Steven Clarke (@stevencl)
stevencl commentedon Apr 25, 2017
An alternative would be for us to draw the lightbulb in the space between the start of the line and the line number. We currently use at least some of this space to show the block expandos.
jrieken commentedon Apr 25, 2017
Doesn't that mean we'll have a similar problem, just with expandos vs light bulb?
stevencl commentedon Apr 25, 2017
No, we would make sure that it fits. I wouldn't want to suggest something that would just make the problem reappear elsewhere. Something like so:

We might also want to fine tune the region lines and expandos so that the expando sits a few pixels closer to the lines.
Basically we would need to spend some time laying out the different pieces of UI so that they fit well without significantly eating into horizontal real estate.
jrieken commentedon Apr 25, 2017
Unsure, left of the expandos is the dirty diff decoration... Should we than make more room and shift things a little?
crysyn commentedon May 10, 2017
Similar bug in the opposite manner.
Was going to delete a line of code by selecting it from the margin, Did a double click or so and selected it and put a breakpoint down. Tried to get rid of the breakpoint and an unrendered lightbulb kept giving me its context menu instead of removing the displayed breakpoint.
VSCode Version:
Version 1.13.0-insider (1.13.0-insider)
c615b43
2017-05-09T06:02:40.607Z
34 remaining items
jtsom commentedon Sep 22, 2017
Just a point of info.. with the way it is now, with the lightbulb showing up almost anywhere - in front of the line with the issue, above the line, below the line, I keep thinking the issue is where the lightbulb is - more often than not above the actual line with the problem... and I more often than not see the bulb over/obscuring text.
The screenshot that Daniel Imms (@Tyriar) posted is a great example - it's hard to know where the issue is, not to mention with the lightbulb plopped on top of the text, it is very confusing and almost gets lost.
sean-mcmanus commentedon Sep 22, 2017
Update: With the Insiders build and our pending 0.13.0 C++ extension update, I frequently get the tooltip for the current line covering up the code action for the current line.
. The tooltip error can be fixed via the code action, but the tooltip makes the code action hidden/unclickable. Please fix this scenario ASAP. If anything, force the code action (light bulb) and tooltip to not overlap.
jrieken commentedon Sep 25, 2017
This is a rough sketch of how it would look and feel when showing the lightbulb in the hover. I believe it has potential tho needs to much polish for a quick change (in September). Things that should be improved with
jtsom commentedon Sep 25, 2017
That's not bad, but I think the position of the lightbulb itself is the issue. In your picture, if there was any code on line 58, the lightbulb would be drawn over that code, potentially causing confusion as to where the problem is, or even lose the bulb in a mass of text (see Daniel Imms (@Tyriar) 's graphic above)
jrieken commentedon Sep 25, 2017
Yes, I already understood that the first time you mentioned it. Note that I wrote: "Things that should be improved...don't show two light bulbs"
jrieken commentedon Sep 12, 2018
The light bulb isn't in the gutter anymore but inside the text. That's the new design which as proven to be working best, albeit some issues.