File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1+ Capture telemetry when tests are disabled.
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export enum EventName {
3737 DEBUGGER_ATTACH_TO_CHILD_PROCESS  =  'DEBUGGER.ATTACH_TO_CHILD_PROCESS' , 
3838 DEBUGGER_CONFIGURATION_PROMPTS  =  'DEBUGGER.CONFIGURATION.PROMPTS' , 
3939 UNITTEST_STOP  =  'UNITTEST.STOP' , 
40+  UNITTEST_DISABLE  =  'UNITTEST.DISABLE' , 
4041 UNITTEST_RUN  =  'UNITTEST.RUN' , 
4142 UNITTEST_DISCOVER  =  'UNITTEST.DISCOVER' , 
4243 UNITTEST_CONFIGURE  =  'UNITTEST.CONFIGURE' , 
Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ export interface IEventNamePropertyMapping {
308308 [ EventName . UNITTEST_DISCOVER ] : TestDiscoverytTelemetry ; 
309309 [ EventName . UNITTEST_RUN ] : TestRunTelemetry ; 
310310 [ EventName . UNITTEST_STOP ] : never  |  undefined ; 
311+  [ EventName . UNITTEST_DISABLE ] : never  |  undefined ; 
311312 [ EventName . UNITTEST_VIEW_OUTPUT ] : never  |  undefined ; 
312313 [ EventName . UPDATE_PYSPARK_LIBRARY ] : never  |  undefined ; 
313314 [ EventName . WORKSPACE_SYMBOLS_BUILD ] : never  |  undefined ; 
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import { IConfigurationService } from '../../common/types';
88import  {  UnitTests  }  from  '../../common/utils/localize' ; 
99import  {  noop  }  from  '../../common/utils/misc' ; 
1010import  {  IServiceContainer  }  from  '../../ioc/types' ; 
11+ import  {  captureTelemetry  }  from  '../../telemetry' ; 
12+ import  {  EventName  }  from  '../../telemetry/constants' ; 
1113import  {  CANCELLATION_REASON  }  from  '../common/constants' ; 
1214import  {  ITestsHelper ,  Tests  }  from  '../common/types' ; 
1315import  {  ITestResultDisplay  }  from  '../types' ; 
@@ -144,6 +146,7 @@ export class TestResultDisplay implements ITestResultDisplay {
144146 this . discoverCounter  =  0 ; 
145147 } 
146148
149+  @captureTelemetry ( EventName . UNITTEST_DISABLE ) 
147150 // tslint:disable-next-line:no-any 
148151 private  async  disableTests ( ) : Promise < any >  { 
149152 const  configurationService  =  this . serviceContainer . get < IConfigurationService > ( IConfigurationService ) ; 
                         You can’t perform that action at this time. 
           
                  
0 commit comments