mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Fix #119626
This commit is contained in:
@@ -392,6 +392,14 @@ class Extensions extends Disposable {
|
||||
return false;
|
||||
}
|
||||
|
||||
private async syncInstalledExtensionWithGallery(extension: Extension): Promise<void> {
|
||||
const compatible = await this.galleryService.getCompatibleExtension(extension.identifier);
|
||||
if (compatible) {
|
||||
extension.gallery = compatible;
|
||||
this._onChange.fire({ extension });
|
||||
}
|
||||
}
|
||||
|
||||
private getInstalledExtensionMatchingGallery(gallery: IGalleryExtension): Extension | null {
|
||||
for (const installed of this.installed) {
|
||||
if (installed.uuid) { // Installed from Gallery
|
||||
@@ -441,6 +449,9 @@ class Extensions extends Disposable {
|
||||
}
|
||||
}
|
||||
this._onChange.fire(error || !extension ? undefined : { extension, operation: event.operation });
|
||||
if (extension && !extension.gallery) {
|
||||
this.syncInstalledExtensionWithGallery(extension);
|
||||
}
|
||||
}
|
||||
|
||||
private onUninstallExtension(identifier: IExtensionIdentifier): void {
|
||||
|
||||
Reference in New Issue
Block a user