Fixes #96809: Add sticky argument and have it be false by default

This commit is contained in:
Alex Dima
2020-06-04 15:38:59 +02:00
parent f4287e67a6
commit 5b28babfb8
4 changed files with 51 additions and 12 deletions

View File

@@ -43,6 +43,10 @@ export interface IDiffEditorContributionDescription {
export interface ICommandKeybindingsOptions extends IKeybindings {
kbExpr?: ContextKeyExpression | null;
weight: number;
/**
* the default keybinding arguments
*/
args?: any;
}
export interface ICommandMenuOptions {
menuId: MenuId;
@@ -96,6 +100,7 @@ export abstract class Command {
id: this.id,
handler: (accessor, args) => this.runCommand(accessor, args),
weight: this._kbOpts.weight,
args: this._kbOpts.args,
when: kbWhen,
primary: this._kbOpts.primary,
secondary: this._kbOpts.secondary,