Skip to content

Commit aaa4e0a

Browse files
authored
Merge pull request microsoft#135914 from microsoft/digitarald/lang-rec-fix
Fix placeholder for extension recommendation treatment
2 parents 0bc255b + 50f3ca6 commit aaa4e0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@ export class FileBasedRecommendations extends ExtensionRecommendations {
282282
return false;
283283
}
284284

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

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

0 commit comments

Comments
 (0)