From 7c7da59c2333a1306c41e6e7b68d7f0caa7b3d45 Mon Sep 17 00:00:00 2001 From: Christof Marti Date: Thu, 3 May 2018 17:10:28 +0200 Subject: [PATCH] Fix logic for choosing insider/stable language pack (fixes #49126) --- .../electron-browser/localizations.contribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/localizations/electron-browser/localizations.contribution.ts b/src/vs/workbench/parts/localizations/electron-browser/localizations.contribution.ts index 175ea3e68f6ee..fc32956260008 100644 --- a/src/vs/workbench/parts/localizations/electron-browser/localizations.contribution.ts +++ b/src/vs/workbench/parts/localizations/electron-browser/localizations.contribution.ts @@ -120,7 +120,7 @@ export class LocalizationWorkbenchContribution extends Disposable implements IWo .then(coreLanguages => { if (coreLanguages.some(c => c.toLowerCase() === language)) { const extensionIdPrefix = language === 'zh-cn' ? 'zh-hans' : language === 'zh-tw' ? 'zh-hant' : language; - const extensionId = product.quality !== 'insider' ? `MS-CEINTL.vscode-insiders-language-pack-${extensionIdPrefix}` : `MS-CEINTL.vscode-language-pack-${extensionIdPrefix}`; + const extensionId = product.quality === 'insider' ? `MS-CEINTL.vscode-insiders-language-pack-${extensionIdPrefix}` : `MS-CEINTL.vscode-language-pack-${extensionIdPrefix}`; return this.galleryService.query({ names: [extensionId], pageSize: 1 }) .then(result => result.total === 1 ? result.firstPage[0] : null); }