Skip to content

Commit

Permalink
debug: anounce when program continues
Browse files Browse the repository at this point in the history
fixes #3408
  • Loading branch information
isidorn committed Feb 24, 2016
1 parent 4c786de commit 30ce966
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
this.windowService.getWindow().focus();
const callStack = this.model.getThreads()[threadId].callStack;
if (callStack.length > 0) {
aria.alert(nls.localize('programPaused', "Program paused, reason {0}, {1} {2}", event.body.reason, callStack[0].source.name, callStack[0].lineNumber));
aria.alert(nls.localize('debuggingPaused', "Debugging paused, reason {0}, {1} {2}", event.body.reason, callStack[0].source.name, callStack[0].lineNumber));
this.setFocusedStackFrameAndEvaluate(callStack[0]);
this.openOrRevealEditor(callStack[0].source, callStack[0].lineNumber, false, false).done(null, errors.onUnexpectedError);
} else {
Expand All @@ -255,6 +255,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
}));

this.toDispose.push(this.session.addListener2(debug.SessionEvents.CONTINUED, () => {
aria.alert(nls.localize('debuggingContinued', "Debugging continued."));
this.model.clearThreads(false);
this.setFocusedStackFrameAndEvaluate(null);
this.setStateAndEmit(debug.State.Running);
Expand Down

0 comments on commit 30ce966

Please sign in to comment.