提交 fb75f32b 编写于 作者: S Sandeep Somavarapu

#59346 Use EditorTitle menu id

上级 c69d51ad
...@@ -391,12 +391,13 @@ CommandsRegistry.registerCommand(KEYBINDINGS_EDITOR_SHOW_DEFAULT_KEYBINDINGS, se ...@@ -391,12 +391,13 @@ CommandsRegistry.registerCommand(KEYBINDINGS_EDITOR_SHOW_DEFAULT_KEYBINDINGS, se
control.search('@source:default'); control.search('@source:default');
} }
}); });
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
command: { command: {
id: KEYBINDINGS_EDITOR_SHOW_DEFAULT_KEYBINDINGS, id: KEYBINDINGS_EDITOR_SHOW_DEFAULT_KEYBINDINGS,
title: nls.localize('showDefaultKeybindings', "Show Default Keybindings") title: nls.localize('showDefaultKeybindings', "Show Default Keybindings")
}, },
when: ContextKeyExpr.and(CONTEXT_KEYBINDINGS_EDITOR) when: ContextKeyExpr.and(CONTEXT_KEYBINDINGS_EDITOR),
group: '1_keyboard_preferences_actions'
}); });
CommandsRegistry.registerCommand(KEYBINDINGS_EDITOR_SHOW_USER_KEYBINDINGS, serviceAccessor => { CommandsRegistry.registerCommand(KEYBINDINGS_EDITOR_SHOW_USER_KEYBINDINGS, serviceAccessor => {
...@@ -405,12 +406,13 @@ CommandsRegistry.registerCommand(KEYBINDINGS_EDITOR_SHOW_USER_KEYBINDINGS, servi ...@@ -405,12 +406,13 @@ CommandsRegistry.registerCommand(KEYBINDINGS_EDITOR_SHOW_USER_KEYBINDINGS, servi
control.search('@source:user'); control.search('@source:user');
} }
}); });
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
command: { command: {
id: KEYBINDINGS_EDITOR_SHOW_USER_KEYBINDINGS, id: KEYBINDINGS_EDITOR_SHOW_USER_KEYBINDINGS,
title: nls.localize('showUserKeybindings', "Show User Keybindings") title: nls.localize('showUserKeybindings', "Show User Keybindings")
}, },
when: ContextKeyExpr.and(CONTEXT_KEYBINDINGS_EDITOR) when: ContextKeyExpr.and(CONTEXT_KEYBINDINGS_EDITOR),
group: '1_keyboard_preferences_actions'
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册