-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Quick fix light bulb disappears before it can be clicked #17540
Comments
I could still reproduce on Linux |
@isidorn We need to sync on this. We both want to use the gutter for additional commands/menus and we should invent something like a editor gutter menu |
@jrieken I am open for suggestions |
@sandy081 sits in the same boot and should also join the party... |
These edit icons are shown only on settings files.. Not sure if we can add break points there |
There is a setting that allows breakpoints everywhere, then hit F9 while the edit icon show and screen cheese. Long story short: There are 3 custom ways to get a context menu and primary command with an icon in the gutter (breakpoints, settings, quick fix) and we should have something real, like a gutter-menu to prevent these collisions and workarounds |
@jrieken your proposal makes sense to me. We can look into this tomorrow in the office, or some time next week when it suits you. |
After understanding the whole richness and complexity of the debug glyph margin decoration we figured it's too much for the menu-story... Instead the light bulb uses the same implementation approach debug uses and therefore conflicts don't happen. Also, debug must check if a line has already a glyph margin decoration before adding one on mouse move, similar check before clicking... My old code to check if the glyph margin has space. fyi @isidorn private _hasSpaceInGlyphMargin(line: number): boolean {
if (!this._editor.getRawConfiguration().glyphMargin) {
return false;
}
const decorations = this._editor.getLineDecorations(line);
if (decorations) {
for (const {options} of decorations) {
if (options.glyphMarginClassName) {
return false;
}
}
}
return true;
} |
@jrieken Do I need to do the same for Settings? |
@sandy081 for now we can survive without that. Breakpoints will hide if there are any other decoarions on the line including yours |
Given @sandy081 uses a decoration to get wrench-icon into the glyph margin |
@sandy081 ok so at least you should use an editor decoration with the glyp margin options to align with the rest of us |
Ok. Will adopt. Reopening it. |
Adopted to use decorations. Closing it. |
Works nicely now. Nice job! |
Steps to Reproduce:
Filing this on behalf of @wsmelton who filed the issue originally here: PowerShell/vscode-powershell#392
Sometimes the quick fix light bulb isn't clickable in the gutter:
It seems there may be some conflict between the hover handlers of the breakpoint gutter and the lightbulb that should be showing up. Using Ctrl+. on the line invokes the quick fix menu correctly even though the lightbulb isn't clickable.
The text was updated successfully, but these errors were encountered: