Skip to content

Commit

Permalink
debug: tune aria alerts
Browse files Browse the repository at this point in the history
fixes #3410
  • Loading branch information
isidorn committed Feb 24, 2016
1 parent dc23a72 commit 4c786de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vs/workbench/parts/debug/electron-browser/debugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService

private registerSessionListeners(): void {
this.toDispose.push(this.session.addListener2(debug.SessionEvents.INITIALIZED, (event: DebugProtocol.InitializedEvent) => {
aria.alert(nls.localize('programStarted', "Program started."));
aria.alert(nls.localize('debuggingStarted', "Debugging started."));
this.sendAllBreakpoints().then(() => {
if (this.session.capabilities.supportsConfigurationDoneRequest) {
this.session.configurationDone().done(null, errors.onUnexpectedError);
Expand All @@ -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('programStopped', "Program stopped, reason {0}, {1} {2}", event.body.reason, callStack[0].source.name, callStack[0].lineNumber));
aria.alert(nls.localize('programPaused', "Program 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 Down Expand Up @@ -277,7 +277,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
}));

this.toDispose.push(this.session.addListener2(debug.SessionEvents.DEBUGEE_TERMINATED, (event: DebugProtocol.TerminatedEvent) => {
aria.alert(nls.localize('programTerminated', "Program terminated."));
aria.alert(nls.localize('debuggingStopped', "Debugging stopped."));
if (this.session && this.session.getId() === (<any>event).sessionId) {
if (event.body && typeof event.body.restart === 'boolean' && event.body.restart) {
this.restartSession().done(null, errors.onUnexpectedError);
Expand Down

0 comments on commit 4c786de

Please sign in to comment.