debug: null guard
This commit is contained in:
parent
e4c130c36a
commit
7533eb39a0
1 changed files with 4 additions and 2 deletions
|
@ -278,8 +278,10 @@ export class DebugService implements debug.IDebugService {
|
|||
}
|
||||
|
||||
this.focusStackFrameAndEvaluate(stackFrameToFocus).done(null, errors.onUnexpectedError);
|
||||
this.windowService.getWindow().focus();
|
||||
aria.alert(nls.localize('debuggingPaused', "Debugging paused, reason {0}, {1} {2}", thread.stoppedDetails.reason, stackFrameToFocus.source ? stackFrameToFocus.source.name : '', stackFrameToFocus.range.startLineNumber));
|
||||
if (thread.stoppedDetails) {
|
||||
this.windowService.getWindow().focus();
|
||||
aria.alert(nls.localize('debuggingPaused', "Debugging paused, reason {0}, {1} {2}", thread.stoppedDetails.reason, stackFrameToFocus.source ? stackFrameToFocus.source.name : '', stackFrameToFocus.range.startLineNumber));
|
||||
}
|
||||
|
||||
return stackFrameToFocus.openInEditor(this.editorService);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue