diff options
author | Martin Aeschlimann <martinae@microsoft.com> | 2021-06-09 13:16:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 13:16:30 +0300 |
commit | b4c1bd0a9b03c749ea011b06c6d2676c8091a70c (patch) | |
tree | 93d2c352a5b283e89fc9626e08784c298c0cf2c7 /src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts | |
parent | f8b576c274b74b7d15743f60df951834ebde55bf (diff) | |
parent | 33d504f8455b5c0ddf27d529739ca17bb634092d (diff) |
Merge pull request #125817 from microsoft/aeschli/1257861.57.0
aeschli/125786
Diffstat (limited to 'src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts')
-rw-r--r-- | src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts b/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts index 5f4725e8f56..825a93c9fc2 100644 --- a/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts +++ b/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.ts @@ -233,9 +233,10 @@ class FormatOnSaveParticipant implements ITextFileSaveParticipant { const nestedProgress = new Progress<{ displayName?: string, extensionId?: ExtensionIdentifier }>(provider => { progress.report({ message: localize( - 'formatting', - "Running '{0}' Formatter ([configure](command:workbench.action.openSettings?%5B%22editor.formatOnSave%22%5D)).", - provider.displayName || provider.extensionId && provider.extensionId.value || '???' + { key: 'formatting2', comment: ['[configure]({1}) is a link. Only translate `configure`. Do not change brackets and parentheses or {1}'] }, + "Running '{0}' Formatter ([configure]({1})).", + provider.displayName || provider.extensionId && provider.extensionId.value || '???', + 'command:workbench.action.openSettings?%5B%22editor.formatOnSave%22%5D' ) }); }); @@ -336,9 +337,10 @@ class CodeActionOnSaveParticipant implements ITextFileSaveParticipant { private _report(): void { progress.report({ message: localize( - 'codeaction.get', - "Getting code actions from '{0}' ([configure](command:workbench.action.openSettings?%5B%22editor.codeActionsOnSave%22%5D)).", - [...this._names].map(name => `'${name}'`).join(', ') + { key: 'codeaction.get2', comment: ['[configure]({1}) is a link. Only translate `configure`. Do not change brackets and parentheses or {1}'] }, + "Getting code actions from '{0}' ([configure]({1})).", + [...this._names].map(name => `'${name}'`).join(', '), + 'command:workbench.action.openSettings?%5B%22editor.codeActionsOnSave%22%5D' ) }); } |