@@ -70,9 +70,9 @@ suite('Debugging - Banner', () => {
7070 browser . verifyAll ( ) ; 
7171 } ) ; 
7272 test ( 'Increment Debugger Launch Counter when debug session starts' ,  async  ( )  =>  { 
73-  let  onDidStartDebugSessionCb : ( e : DebugSession )  =>  Promise < void > ; 
74-  debugService . setup ( d  =>  d . onDidStartDebugSession ( typemoq . It . isAny ( ) ) ) 
75-  . callback ( cb  =>  onDidStartDebugSessionCb  =  cb ) 
73+  let  onDidTerminateDebugSessionCb : ( e : DebugSession )  =>  Promise < void > ; 
74+  debugService . setup ( d  =>  d . onDidTerminateDebugSession ( typemoq . It . isAny ( ) ) ) 
75+  . callback ( cb  =>  onDidTerminateDebugSessionCb  =  cb ) 
7676 . verifiable ( typemoq . Times . once ( ) ) ; 
7777
7878 const  debuggerLaunchCounter  =  1234 ; 
@@ -84,15 +84,15 @@ suite('Debugging - Banner', () => {
8484 . verifiable ( typemoq . Times . atLeastOnce ( ) ) ; 
8585
8686 banner . initialize ( ) ; 
87-  await  onDidStartDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
87+  await  onDidTerminateDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
8888
8989 launchCounterState . verifyAll ( ) ; 
9090 browser . verifyAll ( ) ; 
9191 debugService . verifyAll ( ) ; 
9292 showBannerState . verifyAll ( ) ; 
9393 } ) ; 
9494 test ( 'Do not Increment Debugger Launch Counter when debug session starts and Banner is disabled' ,  async  ( )  =>  { 
95-  debugService . setup ( d  =>  d . onDidStartDebugSession ( typemoq . It . isAny ( ) ) ) 
95+  debugService . setup ( d  =>  d . onDidTerminateDebugSession ( typemoq . It . isAny ( ) ) ) 
9696 . verifiable ( typemoq . Times . never ( ) ) ; 
9797
9898 const  debuggerLaunchCounter  =  1234 ; 
@@ -147,11 +147,11 @@ suite('Debugging - Banner', () => {
147147 launchThresholdCounterState . verifyAll ( ) ; 
148148 } ) ; 
149149 test ( 'showBanner must be invoked when shouldShowBanner returns true' ,  async  ( )  =>  { 
150-  let  onDidStartDebugSessionCb : ( e : DebugSession )  =>  Promise < void > ; 
150+  let  onDidTerminateDebugSessionCb : ( e : DebugSession )  =>  Promise < void > ; 
151151 const  currentLaunchCounter  =  50 ; 
152152
153-  debugService . setup ( d  =>  d . onDidStartDebugSession ( typemoq . It . isAny ( ) ) ) 
154-  . callback ( cb  =>  onDidStartDebugSessionCb  =  cb ) 
153+  debugService . setup ( d  =>  d . onDidTerminateDebugSession ( typemoq . It . isAny ( ) ) ) 
154+  . callback ( cb  =>  onDidTerminateDebugSessionCb  =  cb ) 
155155 . verifiable ( typemoq . Times . atLeastOnce ( ) ) ; 
156156 showBannerState . setup ( s  =>  s . value ) . returns ( ( )  =>  true ) 
157157 . verifiable ( typemoq . Times . atLeastOnce ( ) ) ; 
@@ -166,19 +166,19 @@ suite('Debugging - Banner', () => {
166166 appShell . setup ( a  =>  a . showInformationMessage ( typemoq . It . isValue ( message ) ,  typemoq . It . isValue ( yes ) ,  typemoq . It . isValue ( no ) ) ) 
167167 . verifiable ( typemoq . Times . once ( ) ) ; 
168168 banner . initialize ( ) ; 
169-  await  onDidStartDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
169+  await  onDidTerminateDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
170170
171171 appShell . verifyAll ( ) ; 
172172 showBannerState . verifyAll ( ) ; 
173173 launchCounterState . verifyAll ( ) ; 
174174 launchThresholdCounterState . verifyAll ( ) ; 
175175 } ) ; 
176176 test ( 'showBanner must not be invoked the second time after dismissing the message' ,  async  ( )  =>  { 
177-  let  onDidStartDebugSessionCb : ( e : DebugSession )  =>  Promise < void > ; 
177+  let  onDidTerminateDebugSessionCb : ( e : DebugSession )  =>  Promise < void > ; 
178178 let  currentLaunchCounter  =  50 ; 
179179
180-  debugService . setup ( d  =>  d . onDidStartDebugSession ( typemoq . It . isAny ( ) ) ) 
181-  . callback ( cb  =>  onDidStartDebugSessionCb  =  cb ) 
180+  debugService . setup ( d  =>  d . onDidTerminateDebugSession ( typemoq . It . isAny ( ) ) ) 
181+  . callback ( cb  =>  onDidTerminateDebugSessionCb  =  cb ) 
182182 . verifiable ( typemoq . Times . atLeastOnce ( ) ) ; 
183183 showBannerState . setup ( s  =>  s . value ) . returns ( ( )  =>  true ) 
184184 . verifiable ( typemoq . Times . atLeastOnce ( ) ) ; 
@@ -193,10 +193,10 @@ suite('Debugging - Banner', () => {
193193 . returns ( ( )  =>  Promise . resolve ( undefined ) ) 
194194 . verifiable ( typemoq . Times . once ( ) ) ; 
195195 banner . initialize ( ) ; 
196-  await  onDidStartDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
197-  await  onDidStartDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
198-  await  onDidStartDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
199-  await  onDidStartDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
196+  await  onDidTerminateDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
197+  await  onDidTerminateDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
198+  await  onDidTerminateDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
199+  await  onDidTerminateDebugSessionCb ! ( {  type : ExperimentalDebuggerType  }  as  any ) ; 
200200
201201 appShell . verifyAll ( ) ; 
202202 showBannerState . verifyAll ( ) ; 
0 commit comments