提交 901b0423 编写于 作者: J Johannes Rieken

use precondition, #96239

上级 70914641
......@@ -27,8 +27,9 @@ registerAction2(class extends Action2 {
id: 'notebook.format',
title: localize('format.title', 'Format Notebook'),
category: localize('cat', "Notebook"),
precondition: ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR),
keybinding: {
when: ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, EditorContextKeys.editorTextFocus.toNegated()),
when: EditorContextKeys.editorTextFocus.toNegated(),
primary: KeyMod.Shift | KeyMod.Alt | KeyCode.KEY_F,
linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_I },
weight: KeybindingWeight.WorkbenchContrib
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册