未验证 提交 090f2376 编写于 作者: S Sandeep Somavarapu 提交者: GitHub

Merge pull request #65622 from YisraelV/prependCategory

prepend category in keybinding editor
...@@ -235,7 +235,12 @@ export class KeybindingsEditorModel extends EditorModel { ...@@ -235,7 +235,12 @@ export class KeybindingsEditorModel extends EditorModel {
private static getCommandLabel(menuCommand: ICommandAction, editorActionLabel: string): string { private static getCommandLabel(menuCommand: ICommandAction, editorActionLabel: string): string {
if (menuCommand) { if (menuCommand) {
return typeof menuCommand.title === 'string' ? menuCommand.title : menuCommand.title.value; let category;
if (menuCommand.category) {
category = typeof menuCommand.category === 'string' ? menuCommand.category : menuCommand.category.value;
}
const title = typeof menuCommand.title === 'string' ? menuCommand.title : menuCommand.title.value;
return category ? `${category}: ${title}` : title;
} }
if (editorActionLabel) { if (editorActionLabel) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册