Path: blob/main/src/vs/code/electron-utility/sharedProcess/contrib/extensions.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 { Disposable } from '../../../../base/common/lifecycle.js';6import { IExtensionGalleryService, IGlobalExtensionEnablementService } from '../../../../platform/extensionManagement/common/extensionManagement.js';7import { ExtensionStorageService, IExtensionStorageService } from '../../../../platform/extensionManagement/common/extensionStorage.js';8import { migrateUnsupportedExtensions } from '../../../../platform/extensionManagement/common/unsupportedExtensionsMigration.js';9import { INativeServerExtensionManagementService } from '../../../../platform/extensionManagement/node/extensionManagementService.js';10import { ILogService } from '../../../../platform/log/common/log.js';11import { IStorageService } from '../../../../platform/storage/common/storage.js';1213export class ExtensionsContributions extends Disposable {14constructor(15@INativeServerExtensionManagementService extensionManagementService: INativeServerExtensionManagementService,16@IExtensionGalleryService extensionGalleryService: IExtensionGalleryService,17@IExtensionStorageService extensionStorageService: IExtensionStorageService,18@IGlobalExtensionEnablementService extensionEnablementService: IGlobalExtensionEnablementService,19@IStorageService storageService: IStorageService,20@ILogService logService: ILogService,21) {22super();2324extensionManagementService.cleanUp();25migrateUnsupportedExtensions(extensionManagementService, extensionGalleryService, extensionStorageService, extensionEnablementService, logService);26ExtensionStorageService.removeOutdatedExtensionVersions(extensionManagementService, storageService);27}2829}303132