Skip to content

Commit ff0caf2

Browse files
committed
Remove code lenses used in tests (#16200)
1 parent 162f437 commit ff0caf2

5 files changed

Lines changed: 2 additions & 516 deletions

File tree

src/client/testing/codeLenses/main.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/client/testing/codeLenses/testFiles.ts

Lines changed: 0 additions & 312 deletions
This file was deleted.

src/client/testing/main.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { IInterpreterService } from '../interpreter/contracts';
2727
import { IServiceContainer } from '../ioc/types';
2828
import { EventName } from '../telemetry/constants';
2929
import { captureTelemetry, sendTelemetryEvent } from '../telemetry/index';
30-
import { activateCodeLenses } from './codeLenses/main';
3130
import { CANCELLATION_REASON } from './common/constants';
3231
import { selectTestWorkspace } from './common/testUtils';
3332
import { 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

Comments
 (0)