diff --git a/src/vs/workbench/services/preferences/common/keybindingsEditorModel.ts b/src/vs/workbench/services/preferences/common/keybindingsEditorModel.ts index af3de1c268b799f003bb7ed6deb78304ae736dc5..5a9455f41282dfdb9df9376b0afd080bf4565bca 100644 --- a/src/vs/workbench/services/preferences/common/keybindingsEditorModel.ts +++ b/src/vs/workbench/services/preferences/common/keybindingsEditorModel.ts @@ -235,7 +235,12 @@ export class KeybindingsEditorModel extends EditorModel { private static getCommandLabel(menuCommand: ICommandAction, editorActionLabel: string): string { 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) {