Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/code/electron-utility/sharedProcess/contrib/extensions.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { Disposable } from '../../../../base/common/lifecycle.js';
7
import { IExtensionGalleryService, IGlobalExtensionEnablementService } from '../../../../platform/extensionManagement/common/extensionManagement.js';
8
import { ExtensionStorageService, IExtensionStorageService } from '../../../../platform/extensionManagement/common/extensionStorage.js';
9
import { migrateUnsupportedExtensions } from '../../../../platform/extensionManagement/common/unsupportedExtensionsMigration.js';
10
import { INativeServerExtensionManagementService } from '../../../../platform/extensionManagement/node/extensionManagementService.js';
11
import { ILogService } from '../../../../platform/log/common/log.js';
12
import { IStorageService } from '../../../../platform/storage/common/storage.js';
13
14
export class ExtensionsContributions extends Disposable {
15
constructor(
16
@INativeServerExtensionManagementService extensionManagementService: INativeServerExtensionManagementService,
17
@IExtensionGalleryService extensionGalleryService: IExtensionGalleryService,
18
@IExtensionStorageService extensionStorageService: IExtensionStorageService,
19
@IGlobalExtensionEnablementService extensionEnablementService: IGlobalExtensionEnablementService,
20
@IStorageService storageService: IStorageService,
21
@ILogService logService: ILogService,
22
) {
23
super();
24
25
extensionManagementService.cleanUp();
26
migrateUnsupportedExtensions(extensionManagementService, extensionGalleryService, extensionStorageService, extensionEnablementService, logService);
27
ExtensionStorageService.removeOutdatedExtensionVersions(extensionManagementService, storageService);
28
}
29
30
}
31
32