@@ -15,6 +15,7 @@ import errors = require('vs/base/common/errors');
1515import severity from 'vs/base/common/severity' ;
1616import { TPromise } from 'vs/base/common/winjs.base' ;
1717import editor = require( 'vs/editor/common/editorCommon' ) ;
18+ import aria = require( 'vs/base/browser/ui/aria/aria' ) ;
1819import editorbrowser = require( 'vs/editor/browser/editorBrowser' ) ;
1920import { IKeybindingService , IKeybindingContextKey } from 'vs/platform/keybinding/common/keybindingService' ;
2021import { IMarkerService } from 'vs/platform/markers/common/markers' ;
@@ -225,16 +226,18 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
225226 }
226227
227228 private registerSessionListeners ( ) : void {
228- this . toDispose . push ( this . session . addListener2 ( debug . SessionEvents . INITIALIZED , ( event : DebugProtocol . InitializedEvent ) =>
229+ this . toDispose . push ( this . session . addListener2 ( debug . SessionEvents . INITIALIZED , ( event : DebugProtocol . InitializedEvent ) => {
230+ aria . alert ( nls . localize ( 'programStarted' , "Program started." ) ) ;
229231 this . sendAllBreakpoints ( ) . then ( ( ) => {
230232 if ( this . session . capablities . supportsConfigurationDoneRequest ) {
231233 this . session . configurationDone ( ) . done ( null , errors . onUnexpectedError ) ;
232234 }
233- } )
234- ) ) ;
235+ } ) ;
236+ } ) ) ;
235237
236238 this . toDispose . push ( this . session . addListener2 ( debug . SessionEvents . STOPPED , ( event : DebugProtocol . StoppedEvent ) => {
237239 this . setStateAndEmit ( debug . State . Stopped ) ;
240+ aria . alert ( nls . localize ( 'programStopped' , "Program stopped, reason {0}." , event . body . reason ) ) ;
238241 const threadId = event . body . threadId ;
239242
240243 this . getThreadData ( threadId ) . then ( ( ) => {
@@ -276,6 +279,7 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
276279 } ) ) ;
277280
278281 this . toDispose . push ( this . session . addListener2 ( debug . SessionEvents . DEBUGEE_TERMINATED , ( event : DebugProtocol . TerminatedEvent ) => {
282+ aria . alert ( nls . localize ( 'programTerminated' , "Program terminated." ) ) ;
279283 if ( this . session && this . session . getId ( ) === ( < any > event ) . sessionId ) {
280284 this . session . disconnect ( ) . done ( null , errors . onUnexpectedError ) ;
281285 }
0 commit comments