diff --git a/src/vs/vscode.proposed.d.ts b/src/vs/vscode.proposed.d.ts index 16da532c299..7b4251c5e13 100644 --- a/src/vs/vscode.proposed.d.ts +++ b/src/vs/vscode.proposed.d.ts @@ -2329,7 +2329,7 @@ declare module 'vscode' { * @param cancellationToken Token that signals the used asked to abort the test run. */ // eslint-disable-next-line vscode-dts-provider-naming - runTests?(options: TestRun, cancellationToken: CancellationToken): ProviderResult; + runTests(options: TestRun, cancellationToken: CancellationToken): ProviderResult; } /** diff --git a/src/vs/workbench/api/common/extHostTesting.ts b/src/vs/workbench/api/common/extHostTesting.ts index da3c546066d..4084602c9e6 100644 --- a/src/vs/workbench/api/common/extHostTesting.ts +++ b/src/vs/workbench/api/common/extHostTesting.ts @@ -239,7 +239,7 @@ export class ExtHostTesting implements ExtHostTestingShape { */ public async $runTestsForProvider(req: RunTestForProviderRequest, cancellation: CancellationToken): Promise { const provider = this.providers.get(req.providerId); - if (!provider || !provider.runTests) { + if (!provider) { return; }