File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export class Session extends DebugSession {
131
131
private _sourceFileWatcher ?: FileSystemWatcher ;
132
132
private _activeThreadId : number = 0 ; // the one being debugged
133
133
private _localRoot : string = '' ;
134
- private _sourceBreakpointsMap : Map < string , DebugProtocol . SourceBreakpoint [ ] | undefined > = new Map ( ) ;
134
+ private _sourceBreakpointsMap : Map < string , DebugProtocol . SourceBreakpoint [ ] > = new Map ( ) ;
135
135
private _sourceMapRoot ?: string ;
136
136
private _generatedSourceRoot ?: string ;
137
137
private _inlineSourceMap : boolean = false ;
@@ -350,7 +350,7 @@ export class Session extends DebugSession {
350
350
}
351
351
352
352
// store source breakpoints per file
353
- this . _sourceBreakpointsMap . set ( args . source . path , args . breakpoints ) ;
353
+ this . _sourceBreakpointsMap . set ( args . source . path , args . breakpoints ?? [ ] ) ;
354
354
355
355
// rebuild the generated breakpoints map each time a breakpoint is changed in any file
356
356
let generatedBreakpointsMap : Map < string , DebugProtocol . SourceBreakpoint [ ] > = new Map ( ) ;
You can’t perform that action at this time.
0 commit comments