Skip to content

Commit

Permalink
#18095 - Remove descriptions from commands as they do not need args
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Mar 31, 2017
1 parent 74481a5 commit 2c2cf0b
Showing 1 changed file with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
handler: (accessor, args: any) => {
const editor = accessor.get(IWorkbenchEditorService).getActiveEditor() as IKeybindingsEditor;
editor.defineKeybinding(editor.activeKeybindingEntry);
},
description: {
description: nls.localize('keybindings.editor.define.description', "Define Keybinding"),
args: []
}
});

Expand All @@ -193,10 +189,6 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
handler: (accessor, args: any) => {
const editor = accessor.get(IWorkbenchEditorService).getActiveEditor() as IKeybindingsEditor;
editor.removeKeybinding(editor.activeKeybindingEntry);
},
description: {
description: nls.localize('keybindings.editor.remove.description', "Remove Keybinding"),
args: []
}
});

Expand All @@ -208,10 +200,6 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
handler: (accessor, args: any) => {
const editor = accessor.get(IWorkbenchEditorService).getActiveEditor() as IKeybindingsEditor;
editor.resetKeybinding(editor.activeKeybindingEntry);
},
description: {
description: nls.localize('keybindings.editor.reset.description', "Reset Keybinding"),
args: []
}
});

Expand All @@ -220,11 +208,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(),
when: ContextKeyExpr.and(CONTEXT_KEYBINDINGS_EDITOR, CONTEXT_KEYBINDING_FOCUS),
primary: KeyMod.CtrlCmd | KeyCode.KEY_F,
handler: (accessor, args: any) => (accessor.get(IWorkbenchEditorService).getActiveEditor() as IKeybindingsEditor).search(''),
description: {
description: nls.localize('keybindings.editor.search.description', "Search Keybindings"),
args: []
}
handler: (accessor, args: any) => (accessor.get(IWorkbenchEditorService).getActiveEditor() as IKeybindingsEditor).search('')
});

KeybindingsRegistry.registerCommandAndKeybindingRule({
Expand All @@ -235,10 +219,6 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
handler: (accessor, args: any) => {
const editor = accessor.get(IWorkbenchEditorService).getActiveEditor() as IKeybindingsEditor;
editor.copyKeybinding(editor.activeKeybindingEntry);
},
description: {
description: nls.localize('keybindings.editor.copy.description', "Copy Keybindings"),
args: []
}
});

Expand Down

0 comments on commit 2c2cf0b

Please sign in to comment.