Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/workbench/contrib/format/browser/formatActionsNone.ts')
-rw-r--r--src/vs/workbench/contrib/format/browser/formatActionsNone.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vs/workbench/contrib/format/browser/formatActionsNone.ts b/src/vs/workbench/contrib/format/browser/formatActionsNone.ts
index b32e1dc76fb..0177b09bf8f 100644
--- a/src/vs/workbench/contrib/format/browser/formatActionsNone.ts
+++ b/src/vs/workbench/contrib/format/browser/formatActionsNone.ts
@@ -68,9 +68,10 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
const res = await dialogService.show(
Severity.Info,
message,
- [nls.localize('cancel', "Cancel"), nls.localize('install.formatter', "Install Formatter...")]
+ [nls.localize('install.formatter', "Install Formatter..."), nls.localize('cancel', "Cancel")],
+ { cancelId: 1 }
);
- if (res.choice === 1) {
+ if (res.choice !== 1) {
showExtensionQuery(paneCompositeService, `category:formatters ${langName}`);
}
}