Fix offending l10n.t call and add an eslint rule to prevent it from happening (#277577)

ref https://github.com/microsoft/vscode/issues/277576
This commit is contained in:
Tyler James Leonhardt
2025-11-14 18:13:03 -08:00
committed by GitHub
parent 9f56e2671c
commit 8711dcb9da
3 changed files with 92 additions and 1 deletions

View File

@@ -367,7 +367,7 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider<VsCodeCode
let title = action.description;
if (action.fixName === fixNames.classIncorrectlyImplementsInterface) {
title = vscode.l10n.t('{0} with AI', action.description);
message = vscode.l10n.t(`Implement the stubbed-out class members for ${document.getText(diagnostic.range)} with a useful implementation.`);
message = vscode.l10n.t('Implement the stubbed-out class members for {0} with a useful implementation.', document.getText(diagnostic.range));
expand = { kind: 'code-action', action };
} else if (action.fixName === fixNames.fixClassDoesntImplementInheritedAbstractMember) {
title = vscode.l10n.t('{0} with AI', action.description);