File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/vs/workbench/contrib/debug/browser Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,14 @@ export class BreakpointEditorContribution implements IBreakpointEditorContributi
258
258
}
259
259
260
260
const model = this . editor . getModel ( ) ;
261
- if ( ! e . target . position || ! model || e . target . type !== MouseTargetType . GUTTER_GLYPH_MARGIN || e . target . detail . isAfterLines || ! this . marginFreeFromNonDebugDecorations ( e . target . position . lineNumber ) ) {
261
+ if ( ! e . target . position
262
+ || ! model
263
+ || e . target . type !== MouseTargetType . GUTTER_GLYPH_MARGIN
264
+ || e . target . detail . isAfterLines
265
+ || ! this . marginFreeFromNonDebugDecorations ( e . target . position . lineNumber )
266
+ // don't return early if there's a breakpoint
267
+ && ! e . target . element ?. className . includes ( 'breakpoint' )
268
+ ) {
262
269
return ;
263
270
}
264
271
const canSetBreakpoints = this . debugService . canSetBreakpointsIn ( model ) ;
You can’t perform that action at this time.
0 commit comments