@@ -219,9 +219,6 @@ class IotjsDebugSession extends DebugSession {
219
219
. catch ( error => {
220
220
this . log ( error . message , LOG_LEVEL . ERROR ) ;
221
221
this . sendErrorResponse ( response , error ) ;
222
- } )
223
- . then ( ( ) => {
224
- this . sendEvent ( new InitializedEvent ( ) ) ;
225
222
} ) ;
226
223
}
227
224
@@ -312,13 +309,13 @@ class IotjsDebugSession extends DebugSession {
312
309
}
313
310
} ) ) ;
314
311
315
- // Get the persists breakpoints.
312
+ // Get the persisted breakpoints.
316
313
const newBreakpointsLines : number [ ] = newBreakpoints . map ( b => b . line ) ;
317
314
const persistingBreakpoints : TemporaryBreakpoint [ ] = vscodeBreakpoints
318
315
. filter ( b => newBreakpointsLines . indexOf ( b . line ) === - 1 )
319
316
. map ( b => ( { verified : true , line : b . line } ) ) ;
320
317
321
- // Get the removalbe breakpoints.
318
+ // Get the removable breakpoints.
322
319
const vscodeBreakpointsLines : number [ ] = vscodeBreakpoints . map ( b => b . line ) ;
323
320
const removeBps : Breakpoint [ ] = activeBps . filter ( b => vscodeBreakpointsLines . indexOf ( b . line ) === - 1 ) ;
324
321
@@ -368,7 +365,7 @@ class IotjsDebugSession extends DebugSession {
368
365
} ) )
369
366
] ;
370
367
371
- // Get the persists breakpoints.
368
+ // Get the persisted breakpoints.
372
369
const possibleFBs = this . _protocolhandler . getPossibleFunctionBreakpointsByScriptId ( scriptId ) ;
373
370
persistingFBreakpoints = [
374
371
...persistingFBreakpoints ,
@@ -378,7 +375,7 @@ class IotjsDebugSession extends DebugSession {
378
375
} ) . map ( b => < TemporaryBreakpoint > { verified : true , line : b . line } )
379
376
] ;
380
377
381
- // Get the removalbe breakpoints.
378
+ // Get the removable breakpoints.
382
379
const activeFBs : Breakpoint [ ] = this . _protocolhandler . getActiveFunctionBreakpointsByScriptId ( scriptId ) ;
383
380
const removeBps : Breakpoint [ ] = activeFBs . filter ( b => {
384
381
return vscodeFunctionBreakpointNames . indexOf ( b . func . name ) === - 1 ;
@@ -596,6 +593,7 @@ class IotjsDebugSession extends DebugSession {
596
593
} else {
597
594
write ( src ) ;
598
595
}
596
+ this . sendEvent ( new InitializedEvent ( ) ) ;
599
597
}
600
598
}
601
599
0 commit comments