Skip to content

Commit

Permalink
Dont recommend langpacks for core langs #44012
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Feb 28, 2018
1 parent 7bb7ea2 commit 4aa5ea7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const empty: { [key: string]: any; } = Object.create(null);
const milliSecondsInADay = 1000 * 60 * 60 * 24;
const choiceNever = localize('neverShowAgain', "Don't Show Again");
const searchMarketplace = localize('searchMarketplace', "Search Marketplace");
const coreLanguages = ['de', 'es', 'fr', 'it', 'ja', 'ko', 'ru', 'tr', 'zh-cn', 'zh-tw'];

interface IDynamicWorkspaceRecommendations {
remoteSet: string[];
Expand Down Expand Up @@ -138,6 +139,7 @@ export class ExtensionTipsService extends Disposable implements IExtensionTipsSe

if (!language
|| language === LANGUAGE_DEFAULT
|| coreLanguages.some(x => language === x || language.indexOf(x + '-') === 0)
|| config.ignoreRecommendations
|| config.showRecommendationsOnlyOnDemand
|| languagePackSuggestionIgnoreList.indexOf(language) > -1) {
Expand Down

0 comments on commit 4aa5ea7

Please sign in to comment.