mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
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:
committed by
GitHub
parent
9f56e2671c
commit
8711dcb9da
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user