Skip to content

Commit 5fe0604

Browse files
committed
enable strictFunctionTypes
microsoft#81574
1 parent 511137f commit 5fe0604

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/vs/workbench/contrib/debug/browser/breakpointWidget.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 => {

src/vs/workbench/contrib/debug/browser/debugSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class DebugSession implements IDebugSession {
6565

6666
constructor(
6767
private _configuration: { resolved: IConfig, unresolved: IConfig | undefined },
68-
public root: IWorkspaceFolder,
68+
public root: IWorkspaceFolder | undefined,
6969
private model: DebugModel,
7070
options: IDebugSessionOptions | undefined,
7171
@IDebugService private readonly debugService: IDebugService,

src/vs/workbench/contrib/debug/common/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export interface IDebugSession extends ITreeElement {
160160
readonly configuration: IConfig;
161161
readonly unresolvedConfiguration: IConfig | undefined;
162162
readonly state: State;
163-
readonly root: IWorkspaceFolder;
163+
readonly root: IWorkspaceFolder | undefined;
164164
readonly parentSession: IDebugSession | undefined;
165165
readonly subId: string | undefined;
166166

0 commit comments

Comments
 (0)