@@ -27,7 +27,6 @@ import { IInterpreterService } from '../interpreter/contracts';
2727import { IServiceContainer } from '../ioc/types' ;
2828import { EventName } from '../telemetry/constants' ;
2929import { captureTelemetry , sendTelemetryEvent } from '../telemetry/index' ;
30- import { activateCodeLenses } from './codeLenses/main' ;
3130import { CANCELLATION_REASON } from './common/constants' ;
3231import { selectTestWorkspace } from './common/testUtils' ;
3332import { TestSettingsPropertyNames } from './configuration/types' ;
@@ -109,7 +108,7 @@ export class UnitTestManagementService implements ITestManagementService, Dispos
109108 public get onDidStatusChange ( ) : Event < WorkspaceTestStatus > {
110109 return this . _onDidStatusChange . event ;
111110 }
112- public async activate ( symbolProvider : DocumentSymbolProvider ) : Promise < void > {
111+ public async activate ( ) : Promise < void > {
113112 if ( this . activatedOnce ) {
114113 return ;
115114 }
@@ -123,7 +122,6 @@ export class UnitTestManagementService implements ITestManagementService, Dispos
123122 this . autoDiscoverTests ( undefined ) . catch ( ( ex ) =>
124123 traceError ( 'Failed to auto discover tests upon activation' , ex ) ,
125124 ) ;
126- await this . registerSymbolProvider ( symbolProvider ) ;
127125 }
128126 public async getTestManager (
129127 displayTestNotConfiguredMessage : boolean ,
@@ -433,23 +431,6 @@ export class UnitTestManagementService implements ITestManagementService, Dispos
433431 await promise ;
434432 }
435433
436- public async registerSymbolProvider ( symbolProvider : DocumentSymbolProvider ) : Promise < void > {
437- const testCollectionStorage = this . serviceContainer . get < ITestCollectionStorageService > (
438- ITestCollectionStorageService ,
439- ) ;
440- const event = new EventEmitter < void > ( ) ;
441- this . disposableRegistry . push ( event ) ;
442- const handler = this . _onDidStatusChange . event ( ( e ) => {
443- if ( e . status !== TestStatus . Discovering && e . status !== TestStatus . Running ) {
444- event . fire ( ) ;
445- }
446- } ) ;
447- this . disposableRegistry . push ( handler ) ;
448- this . disposableRegistry . push (
449- activateCodeLenses ( event , symbolProvider , testCollectionStorage , this . serviceContainer ) ,
450- ) ;
451- }
452-
453434 @captureTelemetry ( EventName . UNITTEST_CONFIGURE , undefined , false )
454435 public async configureTests ( resource ?: Uri ) {
455436 let wkspace : Uri | undefined ;
0 commit comments