@@ -56,20 +56,22 @@ export class RawDebugSession implements IDisposable {
5656 private didReceiveStoppedEvent = false ;
5757
5858 // DAP events
59- private readonly _onDidInitialize : Emitter < DebugProtocol . InitializedEvent > ;
60- private readonly _onDidStop : Emitter < DebugProtocol . StoppedEvent > ;
61- private readonly _onDidContinued : Emitter < DebugProtocol . ContinuedEvent > ;
62- private readonly _onDidTerminateDebugee : Emitter < DebugProtocol . TerminatedEvent > ;
63- private readonly _onDidExitDebugee : Emitter < DebugProtocol . ExitedEvent > ;
64- private readonly _onDidThread : Emitter < DebugProtocol . ThreadEvent > ;
65- private readonly _onDidOutput : Emitter < DebugProtocol . OutputEvent > ;
66- private readonly _onDidBreakpoint : Emitter < DebugProtocol . BreakpointEvent > ;
67- private readonly _onDidLoadedSource : Emitter < DebugProtocol . LoadedSourceEvent > ;
68- private readonly _onDidCustomEvent : Emitter < DebugProtocol . Event > ;
69- private readonly _onDidEvent : Emitter < DebugProtocol . Event > ;
59+ private readonly _onDidInitialize = new Emitter < DebugProtocol . InitializedEvent > ( ) ;
60+ private readonly _onDidStop = new Emitter < DebugProtocol . StoppedEvent > ( ) ;
61+ private readonly _onDidContinued = new Emitter < DebugProtocol . ContinuedEvent > ( ) ;
62+ private readonly _onDidTerminateDebugee = new Emitter < DebugProtocol . TerminatedEvent > ( ) ;
63+ private readonly _onDidExitDebugee = new Emitter < DebugProtocol . ExitedEvent > ( ) ;
64+ private readonly _onDidThread = new Emitter < DebugProtocol . ThreadEvent > ( ) ;
65+ private readonly _onDidOutput = new Emitter < DebugProtocol . OutputEvent > ( ) ;
66+ private readonly _onDidBreakpoint = new Emitter < DebugProtocol . BreakpointEvent > ( ) ;
67+ private readonly _onDidLoadedSource = new Emitter < DebugProtocol . LoadedSourceEvent > ( ) ;
68+ private readonly _onDidProgressStart = new Emitter < DebugProtocol . ProgressStartEvent > ( ) ;
69+ private readonly _onDidProgressEnd = new Emitter < DebugProtocol . ProgressEndEvent > ( ) ;
70+ private readonly _onDidCustomEvent = new Emitter < DebugProtocol . Event > ( ) ;
71+ private readonly _onDidEvent = new Emitter < DebugProtocol . Event > ( ) ;
7072
7173 // DA events
72- private readonly _onDidExitAdapter : Emitter < AdapterEndEvent > ;
74+ private readonly _onDidExitAdapter = new Emitter < AdapterEndEvent > ( ) ;
7375 private debugAdapter : IDebugAdapter | null ;
7476
7577 private toDispose : IDisposable [ ] = [ ] ;
@@ -86,20 +88,6 @@ export class RawDebugSession implements IDisposable {
8688 this . debugAdapter = debugAdapter ;
8789 this . _capabilities = Object . create ( null ) ;
8890
89- this . _onDidInitialize = new Emitter < DebugProtocol . InitializedEvent > ( ) ;
90- this . _onDidStop = new Emitter < DebugProtocol . StoppedEvent > ( ) ;
91- this . _onDidContinued = new Emitter < DebugProtocol . ContinuedEvent > ( ) ;
92- this . _onDidTerminateDebugee = new Emitter < DebugProtocol . TerminatedEvent > ( ) ;
93- this . _onDidExitDebugee = new Emitter < DebugProtocol . ExitedEvent > ( ) ;
94- this . _onDidThread = new Emitter < DebugProtocol . ThreadEvent > ( ) ;
95- this . _onDidOutput = new Emitter < DebugProtocol . OutputEvent > ( ) ;
96- this . _onDidBreakpoint = new Emitter < DebugProtocol . BreakpointEvent > ( ) ;
97- this . _onDidLoadedSource = new Emitter < DebugProtocol . LoadedSourceEvent > ( ) ;
98- this . _onDidCustomEvent = new Emitter < DebugProtocol . Event > ( ) ;
99- this . _onDidEvent = new Emitter < DebugProtocol . Event > ( ) ;
100-
101- this . _onDidExitAdapter = new Emitter < AdapterEndEvent > ( ) ;
102-
10391 this . toDispose . push ( this . debugAdapter . onError ( err => {
10492 this . shutdown ( err ) ;
10593 } ) ) ;
@@ -151,6 +139,12 @@ export class RawDebugSession implements IDisposable {
151139 case 'exit' :
152140 this . _onDidExitDebugee . fire ( < DebugProtocol . ExitedEvent > event ) ;
153141 break ;
142+ case 'progressStart' :
143+ this . _onDidProgressStart . fire ( event as DebugProtocol . ProgressStartEvent ) ;
144+ break ;
145+ case 'progressEnd' :
146+ this . _onDidProgressEnd . fire ( event as DebugProtocol . ProgressEndEvent ) ;
147+ break ;
154148 default :
155149 this . _onDidCustomEvent . fire ( event ) ;
156150 break ;
@@ -219,6 +213,14 @@ export class RawDebugSession implements IDisposable {
219213 return this . _onDidCustomEvent . event ;
220214 }
221215
216+ get onDidProgressStart ( ) : Event < DebugProtocol . ProgressStartEvent > {
217+ return this . _onDidProgressStart . event ;
218+ }
219+
220+ get onDidProgressEnd ( ) : Event < DebugProtocol . ProgressEndEvent > {
221+ return this . _onDidProgressEnd . event ;
222+ }
223+
222224 get onDidEvent ( ) : Event < DebugProtocol . Event > {
223225 return this . _onDidEvent . event ;
224226 }
0 commit comments