Skip to content

Commit

Permalink
Merge pull request #135914 from microsoft/digitarald/lang-rec-fix
Browse files Browse the repository at this point in the history
Fix placeholder for extension recommendation treatment
  • Loading branch information
sandy081 committed Oct 27, 2021
2 parents 0bc255b + 50f3ca6 commit aaa4e0a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ export class FileBasedRecommendations extends ExtensionRecommendations {
return false;
}

const message = await this.tasExperimentService.getTreatment<string>('languageRecommendationMessage') ?? localize('reallyRecommended', "Do you want to install the recommended extensions for {0}?", name);
const treatmentMessage = await this.tasExperimentService.getTreatment<string>('languageRecommendationMessage');
const message = treatmentMessage ? treatmentMessage.replace('{0}', name) : localize('reallyRecommended', "Do you want to install the recommended extensions for {0}?", name);

this.extensionRecommendationNotificationService.promptImportantExtensionsInstallNotification([extensionId], message, `@id:${extensionId}`, RecommendationSource.FILE)
.then(result => {
Expand Down

0 comments on commit aaa4e0a

Please sign in to comment.