From 5fa2193ba78bbbe2affe73ff3c143aafddf773c6 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Tue, 20 Apr 2021 15:35:32 +0200 Subject: [PATCH] add extensionTestsPath to IWorkbenchConstructionOptions --- .../services/environment/browser/environmentService.ts | 3 +++ src/vs/workbench/workbench.web.api.ts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/vs/workbench/services/environment/browser/environmentService.ts b/src/vs/workbench/services/environment/browser/environmentService.ts index cc55d7b5288..5497d3f9e11 100644 --- a/src/vs/workbench/services/environment/browser/environmentService.ts +++ b/src/vs/workbench/services/environment/browser/environmentService.ts @@ -290,6 +290,9 @@ export class BrowserWorkbenchEnvironmentService implements IWorkbenchEnvironment extensionHostDebugEnvironment.isExtensionDevelopment = true; } } + if (this.options.extensionTestsPath) { + extensionHostDebugEnvironment.extensionTestsLocationURI = URI.revive(this.options.extensionTestsPath); + } // Fill in selected extra environmental properties if (this.payload) { diff --git a/src/vs/workbench/workbench.web.api.ts b/src/vs/workbench/workbench.web.api.ts index d337f0fd006..685761c86a3 100644 --- a/src/vs/workbench/workbench.web.api.ts +++ b/src/vs/workbench/workbench.web.api.ts @@ -321,6 +321,11 @@ interface IWorkbenchConstructionOptions { */ readonly staticExtensions?: ReadonlyArray; + /** + * Location of a module containing extension tests to run once the workbench is open. + */ + readonly extensionTestsPath?: URI; + /** * [TEMPORARY]: This will be removed soon. * Enable inlined extensions.