Skip to content

Commit 941479b

Browse files
authored
1 parent ce3d246 commit 941479b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/services/userDataSync/browser/userDataSyncInit.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { AuthenticationSessionInfo, getCurrentAuthenticationSessionInfo } from '
2020
import { getSyncAreaLabel } from '../common/userDataSync.js';
2121
import { isWeb } from '../../../../base/common/platform.js';
2222
import { Barrier, Promises } from '../../../../base/common/async.js';
23-
import { EXTENSION_INSTALL_SKIP_PUBLISHER_TRUST_CONTEXT, EXTENSION_INSTALL_SOURCE_CONTEXT, ExtensionInstallSource, IExtensionGalleryService, IExtensionManagementService, IGlobalExtensionEnablementService, ILocalExtension } from '../../../../platform/extensionManagement/common/extensionManagement.js';
23+
import { EXTENSION_INSTALL_SKIP_PUBLISHER_TRUST_CONTEXT, IExtensionGalleryService, IExtensionManagementService, IGlobalExtensionEnablementService, ILocalExtension } from '../../../../platform/extensionManagement/common/extensionManagement.js';
2424
import { IEnvironmentService } from '../../../../platform/environment/common/environment.js';
2525
import { IExtensionService, toExtensionDescription } from '../../extensions/common/extensions.js';
2626
import { areSameExtensions } from '../../../../platform/extensionManagement/common/extensionManagementUtil.js';
@@ -384,10 +384,11 @@ class NewExtensionsInitializer implements IUserDataSyncResourceInitializer {
384384
}
385385
this.logService.trace(`Installing extension...`, galleryExtension.identifier.id);
386386
const local = await this.extensionManagementService.installFromGallery(galleryExtension, {
387+
isMachineScoped: false, /* set isMachineScoped to prevent install and sync dialog in web */
387388
donotIncludePackAndDependencies: true,
388389
installGivenVersion: !!extensionToSync.version,
389390
installPreReleaseVersion: extensionToSync.preRelease,
390-
context: { [EXTENSION_INSTALL_SKIP_PUBLISHER_TRUST_CONTEXT]: true, [EXTENSION_INSTALL_SOURCE_CONTEXT]: ExtensionInstallSource.SETTINGS_SYNC }
391+
context: { [EXTENSION_INSTALL_SKIP_PUBLISHER_TRUST_CONTEXT]: true }
391392
});
392393
if (!preview.disabledExtensions.some(identifier => areSameExtensions(identifier, galleryExtension.identifier))) {
393394
newlyEnabledExtensions.push(local);

0 commit comments

Comments
 (0)