-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit d9ed6d1.
- Loading branch information
Showing
29 changed files
with
370 additions
and
570 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/vs/code/electron-browser/sharedProcess/contrib/extensions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* 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 { DEFAULT_PROFILE_EXTENSIONS_MIGRATION_KEY, 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, StorageScope, StorageTarget } 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.migrateDefaultProfileExtensions() | ||
.then(() => storageService.store(DEFAULT_PROFILE_EXTENSIONS_MIGRATION_KEY, true, StorageScope.APPLICATION, StorageTarget.MACHINE), error => null); | ||
|
||
extensionManagementService.removeUninstalledExtensions(); | ||
migrateUnsupportedExtensions(extensionManagementService, extensionGalleryService, extensionStorageService, extensionEnablementService, logService); | ||
ExtensionStorageService.removeOutdatedExtensionVersions(extensionManagementService, storageService); | ||
} | ||
|
||
} |
186 changes: 0 additions & 186 deletions
186
src/vs/code/electron-browser/sharedProcess/contrib/extensionsCleaner.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.