@@ -215,13 +215,12 @@ class FormatDocumentAction extends EditorAction {
215
215
alias : 'Format Document' ,
216
216
precondition : ContextKeyExpr . and ( EditorContextKeys . notInCompositeEditor , EditorContextKeys . writable , EditorContextKeys . hasDocumentFormattingProvider ) ,
217
217
kbOpts : {
218
- kbExpr : ContextKeyExpr . and ( EditorContextKeys . editorTextFocus , EditorContextKeys . hasDocumentFormattingProvider ) ,
218
+ kbExpr : EditorContextKeys . editorTextFocus ,
219
219
primary : KeyMod . Shift | KeyMod . Alt | KeyCode . KEY_F ,
220
220
linux : { primary : KeyMod . CtrlCmd | KeyMod . Shift | KeyCode . KEY_I } ,
221
221
weight : KeybindingWeight . EditorContrib
222
222
} ,
223
223
contextMenuOpts : {
224
- when : EditorContextKeys . hasDocumentFormattingProvider ,
225
224
group : '1_modification' ,
226
225
order : 1.3
227
226
}
@@ -249,12 +248,12 @@ class FormatSelectionAction extends EditorAction {
249
248
alias : 'Format Selection' ,
250
249
precondition : ContextKeyExpr . and ( EditorContextKeys . writable , EditorContextKeys . hasDocumentSelectionFormattingProvider ) ,
251
250
kbOpts : {
252
- kbExpr : ContextKeyExpr . and ( EditorContextKeys . editorTextFocus , EditorContextKeys . hasDocumentSelectionFormattingProvider ) ,
251
+ kbExpr : EditorContextKeys . editorTextFocus ,
253
252
primary : KeyChord ( KeyMod . CtrlCmd | KeyCode . KEY_K , KeyMod . CtrlCmd | KeyCode . KEY_F ) ,
254
253
weight : KeybindingWeight . EditorContrib
255
254
} ,
256
255
contextMenuOpts : {
257
- when : ContextKeyExpr . and ( EditorContextKeys . hasDocumentSelectionFormattingProvider , EditorContextKeys . hasNonEmptySelection ) ,
256
+ when : EditorContextKeys . hasNonEmptySelection ,
258
257
group : '1_modification' ,
259
258
order : 1.31
260
259
}
0 commit comments