28
29
constructor(resolvedKeybinding: ResolvedKeybinding | undefined, command: string | null, commandArgs: any, when: ContextKeyExpression | undefined, isDefault: boolean, extensionId: string | null, isBuiltinExtension: boolean, systemWide: boolean = false) {
31
>
this.chords = resolvedKeybinding ? toEmptyArrayIfContainsNull(resolvedKeybinding.getDispatchChords()) : [];
32
>
if (resolvedKeybinding && this.chords.length === 0) {
33
// handle possible single modifier chord keybindings
34
this.chords = toEmptyArrayIfContainsNull(resolvedKeybinding.getSingleModifierDispatchChords());
35
}
37
>
this.command = this.bubble ? command!.substr(1) : command;
38
>
this.commandArgs = commandArgs;
39
>
this.when = when;
40
>
this.isDefault = isDefault;
41
>
this.extensionId = extensionId;
42
>
this.isBuiltinExtension = isBuiltinExtension;
43
>
this.systemWide = systemWide;
44
>
}
45
}
46