From bae0533322b1254dc82ff5ee036dcbee131ee842 Mon Sep 17 00:00:00 2001 From: Alexandru Dima Date: Wed, 7 Jun 2023 12:49:41 +0200 Subject: [PATCH] Allow extensions to get at the exports of other extensions during resolving (#184489) Allow extensions to get at the exports of other extensions during resolving (fixes #184472) --- src/vs/workbench/api/common/extHostExtensionService.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/api/common/extHostExtensionService.ts b/src/vs/workbench/api/common/extHostExtensionService.ts index 3e54665abcc..307de4ddaed 100644 --- a/src/vs/workbench/api/common/extHostExtensionService.ts +++ b/src/vs/workbench/api/common/extHostExtensionService.ts @@ -313,7 +313,11 @@ export abstract class AbstractExtHostExtensionService extends Disposable impleme if (this._readyToRunExtensions.isOpen()) { return this._activator.getActivatedExtension(extensionId).exports; } else { - return null; + try { + return this._activator.getActivatedExtension(extensionId).exports; + } catch (err) { + return null; + } } }