From 6c3e3dba23e8fadc360aed75ce363ba185c49794 Mon Sep 17 00:00:00 2001 From: Joyce Er Date: Wed, 9 Aug 2023 14:15:31 -0700 Subject: [PATCH] Don't uninstall application-scoped extensions when importing profile (#190067) (#190085) Don't uninstall application-scoped extensions --- .../services/userDataProfile/browser/extensionsResource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/services/userDataProfile/browser/extensionsResource.ts b/src/vs/workbench/services/userDataProfile/browser/extensionsResource.ts index 3017e11df0eb0..5b228f19992d8 100644 --- a/src/vs/workbench/services/userDataProfile/browser/extensionsResource.ts +++ b/src/vs/workbench/services/userDataProfile/browser/extensionsResource.ts @@ -130,7 +130,7 @@ export class ExtensionsResource implements IProfileResource { extensionsToEnableOrDisable.push({ extension: e.identifier, enable: !e.disabled }); } } - const extensionsToUninstall: ILocalExtension[] = installedExtensions.filter(extension => !extension.isBuiltin && !profileExtensions.some(({ identifier }) => areSameExtensions(identifier, extension.identifier))); + const extensionsToUninstall: ILocalExtension[] = installedExtensions.filter(extension => !extension.isBuiltin && !profileExtensions.some(({ identifier }) => areSameExtensions(identifier, extension.identifier)) && !extension.isApplicationScoped); for (const { extension, enable } of extensionsToEnableOrDisable) { if (enable) { this.logService.trace(`Importing Profile (${profile.name}): Enabling extension...`, extension.id);