@@ -506,15 +506,6 @@ export class ExtensionTipsService extends Disposable implements IExtensionTipsSe
506506
507507 private async promptForImportantExeBasedExtension ( ) : Promise < boolean > {
508508
509- const storageKey = 'extensionsAssistant/workspaceRecommendationsIgnore' ;
510- const config = this . configurationService . getValue < IExtensionsConfiguration > ( ConfigurationKey ) ;
511-
512- if ( config . ignoreRecommendations
513- || config . showRecommendationsOnlyOnDemand
514- || this . storageService . getBoolean ( storageKey , StorageScope . WORKSPACE , false ) ) {
515- return false ;
516- }
517-
518509 let recommendationsToSuggest = Object . keys ( this . _importantExeBasedRecommendations ) ;
519510
520511 const installed = await this . extensionManagementService . getInstalled ( ExtensionType . User ) ;
@@ -527,13 +518,23 @@ export class ExtensionTipsService extends Disposable implements IExtensionTipsSe
527518 "exeName": { "classification": "PublicNonPersonalData", "purpose": "FeatureInsight" }
528519 }
529520 */
530- this . telemetryService . publicLog ( 'exeExtensionRecommendations:alreadyInstalled' , { extensionId, exeName : tip . exeFriendlyName || basename ( tip . windowsPath ! ) } ) ;
521+ this . telemetryService . publicLog ( 'exeExtensionRecommendations:alreadyInstalled' , { extensionId, exeName : basename ( tip . windowsPath ! ) } ) ;
531522
532523 } ) ;
524+
533525 if ( recommendationsToSuggest . length === 0 ) {
534526 return false ;
535527 }
536528
529+ const storageKey = 'extensionsAssistant/workspaceRecommendationsIgnore' ;
530+ const config = this . configurationService . getValue < IExtensionsConfiguration > ( ConfigurationKey ) ;
531+
532+ if ( config . ignoreRecommendations
533+ || config . showRecommendationsOnlyOnDemand
534+ || this . storageService . getBoolean ( storageKey , StorageScope . WORKSPACE , false ) ) {
535+ return false ;
536+ }
537+
537538 recommendationsToSuggest = this . filterIgnoredOrNotAllowed ( recommendationsToSuggest ) ;
538539 if ( recommendationsToSuggest . length === 0 ) {
539540 return false ;
0 commit comments