Skip to content

Commit b259712

Browse files
authored
1 parent ef15095 commit b259712

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import { Event, EventMultiplexer } from 'vs/base/common/event';
77
import {
8-
ILocalExtension, IGalleryExtension, IExtensionIdentifier, IExtensionsControlManifest, IExtensionGalleryService, InstallOptions, UninstallOptions, InstallVSIXOptions, InstallExtensionResult, ExtensionManagementError, ExtensionManagementErrorCode, Metadata, InstallOperation
8+
ILocalExtension, IGalleryExtension, IExtensionIdentifier, IExtensionsControlManifest, IExtensionGalleryService, InstallOptions, UninstallOptions, InstallVSIXOptions, InstallExtensionResult, ExtensionManagementError, ExtensionManagementErrorCode, Metadata, InstallOperation, EXTENSION_INSTALL_SYNC_CONTEXT
99
} from 'vs/platform/extensionManagement/common/extensionManagement';
1010
import { DidChangeProfileForServerEvent, DidUninstallExtensionOnServerEvent, IExtensionManagementServer, IExtensionManagementServerService, InstallExtensionOnServerEvent, IWorkbenchExtensionManagementService, UninstallExtensionOnServerEvent } from 'vs/workbench/services/extensionManagement/common/extensionManagement';
1111
import { ExtensionType, isLanguagePackExtension, IExtensionManifest, getWorkspaceSupportTypeMessage, TargetPlatform } from 'vs/platform/extensions/common/extensions';
@@ -333,7 +333,9 @@ export class ExtensionManagementService extends Disposable implements IWorkbench
333333
servers.push(this.extensionManagementServerService.localExtensionManagementServer);
334334
}
335335
}
336-
await this.checkForWorkspaceTrust(manifest);
336+
if (!installOptions.context?.[EXTENSION_INSTALL_SYNC_CONTEXT]) {
337+
await this.checkForWorkspaceTrust(manifest);
338+
}
337339
if (!installOptions.donotIncludePackAndDependencies) {
338340
await this.checkInstallingExtensionOnWeb(gallery, manifest);
339341
}

0 commit comments

Comments
 (0)