From b904ab237a3066ac3ee1b12b9afd5db3686cc7dd Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Thu, 15 Dec 2016 17:02:20 +0100 Subject: [PATCH] Fix #17290 --- .../parts/extensions/node/extensionsWorkbenchService.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts b/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts index 9dedbf25e0dcf..b399a7cdeb23c 100644 --- a/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts +++ b/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts @@ -403,9 +403,8 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService { } private fromGallery(gallery: IGalleryExtension): Extension { - const installedByGalleryId = index(this.installed, e => e.local.metadata ? e.local.metadata.id : ''); - const id = gallery.id; - const installed = installedByGalleryId[id]; + const installedByGalleryId = index(this.installed, e => e.identifier); + const installed = installedByGalleryId[`${gallery.publisher}.${gallery.name}`]; if (installed) { // Loading the compatible version only there is an engine property