Path: blob/main/src/vs/workbench/contrib/extensions/browser/unsupportedExtensionsMigrationContribution.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { IExtensionGalleryService, IGlobalExtensionEnablementService } from '../../../../platform/extensionManagement/common/extensionManagement.js';6import { IExtensionStorageService } from '../../../../platform/extensionManagement/common/extensionStorage.js';7import { migrateUnsupportedExtensions } from '../../../../platform/extensionManagement/common/unsupportedExtensionsMigration.js';8import { ILogService } from '../../../../platform/log/common/log.js';9import { IWorkbenchContribution } from '../../../common/contributions.js';10import { IExtensionManagementServerService } from '../../../services/extensionManagement/common/extensionManagement.js';1112export class UnsupportedExtensionsMigrationContrib implements IWorkbenchContribution {1314constructor(15@IExtensionManagementServerService extensionManagementServerService: IExtensionManagementServerService,16@IExtensionGalleryService extensionGalleryService: IExtensionGalleryService,17@IExtensionStorageService extensionStorageService: IExtensionStorageService,18@IGlobalExtensionEnablementService extensionEnablementService: IGlobalExtensionEnablementService,19@ILogService logService: ILogService,20) {21// Unsupported extensions are not migrated for local extension management server, because it is done in shared process22if (extensionManagementServerService.remoteExtensionManagementServer) {23migrateUnsupportedExtensions(extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService, extensionGalleryService, extensionStorageService, extensionEnablementService, logService);24}25if (extensionManagementServerService.webExtensionManagementServer) {26migrateUnsupportedExtensions(extensionManagementServerService.webExtensionManagementServer.extensionManagementService, extensionGalleryService, extensionStorageService, extensionEnablementService, logService);27}28}2930}313233