mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-31 04:35:14 +01:00
31 lines
1.8 KiB
TypeScript
31 lines
1.8 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { Disposable } from 'vs/base/common/lifecycle';
|
|
import { IExtensionGalleryService, IGlobalExtensionEnablementService } from 'vs/platform/extensionManagement/common/extensionManagement';
|
|
import { ExtensionStorageService, IExtensionStorageService } from 'vs/platform/extensionManagement/common/extensionStorage';
|
|
import { migrateUnsupportedExtensions } from 'vs/platform/extensionManagement/common/unsupportedExtensionsMigration';
|
|
import { INativeServerExtensionManagementService } from 'vs/platform/extensionManagement/node/extensionManagementService';
|
|
import { ILogService } from 'vs/platform/log/common/log';
|
|
import { IStorageService } from 'vs/platform/storage/common/storage';
|
|
|
|
export class ExtensionsContributions extends Disposable {
|
|
constructor(
|
|
@INativeServerExtensionManagementService extensionManagementService: INativeServerExtensionManagementService,
|
|
@IExtensionGalleryService extensionGalleryService: IExtensionGalleryService,
|
|
@IExtensionStorageService extensionStorageService: IExtensionStorageService,
|
|
@IGlobalExtensionEnablementService extensionEnablementService: IGlobalExtensionEnablementService,
|
|
@IStorageService storageService: IStorageService,
|
|
@ILogService logService: ILogService,
|
|
) {
|
|
super();
|
|
|
|
extensionManagementService.cleanUp();
|
|
migrateUnsupportedExtensions(extensionManagementService, extensionGalleryService, extensionStorageService, extensionEnablementService, logService);
|
|
ExtensionStorageService.removeOutdatedExtensionVersions(extensionManagementService, storageService);
|
|
}
|
|
|
|
}
|