Skip to content

Commit

Permalink
Fix logic for choosing insider/stable language pack (fixes #49126)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed May 3, 2018
1 parent 8373fea commit 7c7da59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7c7da59

Please sign in to comment.