@@ -54,8 +54,9 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
5454 private hitCountInput = '' ;
5555 private logMessageInput = '' ;
5656 private breakpoint : IBreakpoint | undefined ;
57+ private context : Context ;
5758
58- constructor ( editor : ICodeEditor , private lineNumber : number , private column : number | undefined , private context : Context ,
59+ constructor ( editor : ICodeEditor , private lineNumber : number , private column : number | undefined , context : Context | undefined ,
5960 @IContextViewService private readonly contextViewService : IContextViewService ,
6061 @IDebugService private readonly debugService : IDebugService ,
6162 @IThemeService private readonly themeService : IThemeService ,
@@ -74,14 +75,16 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
7475 this . breakpoint = breakpoints . length ? breakpoints [ 0 ] : undefined ;
7576 }
7677
77- if ( this . context === undefined ) {
78+ if ( context === undefined ) {
7879 if ( this . breakpoint && ! this . breakpoint . condition && ! this . breakpoint . hitCondition && this . breakpoint . logMessage ) {
7980 this . context = Context . LOG_MESSAGE ;
8081 } else if ( this . breakpoint && ! this . breakpoint . condition && this . breakpoint . hitCondition ) {
8182 this . context = Context . HIT_COUNT ;
8283 } else {
8384 this . context = Context . CONDITION ;
8485 }
86+ } else {
87+ this . context = context ;
8588 }
8689
8790 this . toDispose . push ( this . debugService . getModel ( ) . onDidChangeBreakpoints ( e => {
0 commit comments