@@ -737,7 +737,7 @@ export class DebugModel implements IDebugModel {
737737 private schedulers = new Map < string , RunOnceScheduler > ( ) ;
738738 private breakpointsSessionId : string ;
739739 private readonly _onDidChangeBreakpoints : Emitter < IBreakpointsChangeEvent > ;
740- private readonly _onDidChangeCallStack : Emitter < void > ;
740+ private readonly _onDidChangeCallStack : Emitter < IThread | undefined > ;
741741 private readonly _onDidChangeWatchExpressions : Emitter < IExpression > ;
742742
743743 constructor (
@@ -751,7 +751,7 @@ export class DebugModel implements IDebugModel {
751751 this . sessions = [ ] ;
752752 this . toDispose = [ ] ;
753753 this . _onDidChangeBreakpoints = new Emitter < IBreakpointsChangeEvent > ( ) ;
754- this . _onDidChangeCallStack = new Emitter < void > ( ) ;
754+ this . _onDidChangeCallStack = new Emitter < IThread | undefined > ( ) ;
755755 this . _onDidChangeWatchExpressions = new Emitter < IExpression > ( ) ;
756756 }
757757
@@ -786,7 +786,7 @@ export class DebugModel implements IDebugModel {
786786 return this . _onDidChangeBreakpoints . event ;
787787 }
788788
789- get onDidChangeCallStack ( ) : Event < void > {
789+ get onDidChangeCallStack ( ) : Event < IThread | undefined > {
790790 return this . _onDidChangeCallStack . event ;
791791 }
792792
@@ -819,12 +819,12 @@ export class DebugModel implements IDebugModel {
819819 return thread . fetchCallStack ( 1 ) . then ( ( ) => {
820820 if ( ! this . schedulers . has ( thread . getId ( ) ) ) {
821821 this . schedulers . set ( thread . getId ( ) , new RunOnceScheduler ( ( ) => {
822- thread . fetchCallStack ( 19 ) . then ( ( ) => this . _onDidChangeCallStack . fire ( ) ) ;
822+ thread . fetchCallStack ( 19 ) . then ( ( ) => this . _onDidChangeCallStack . fire ( thread ) ) ;
823823 } , 420 ) ) ;
824824 }
825825
826826 this . schedulers . get ( thread . getId ( ) ) . schedule ( ) ;
827- this . _onDidChangeCallStack . fire ( ) ;
827+ this . _onDidChangeCallStack . fire ( thread ) ;
828828 } ) ;
829829 }
830830
0 commit comments