Skip to content

Commit

Permalink
Update API
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Mar 6, 2024
1 parent a449c9c commit 198250f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions review/api/commands.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class CommandRegistry {
describedBy(id: string, args?: ReadonlyPartialJSONObject): Promise<CommandRegistry.Description>;
execute(id: string, args?: ReadonlyPartialJSONObject): Promise<any>;
hasCommand(id: string): boolean;
holdKeyBindingExecution(event: KeyboardEvent, permission: Promise<boolean>): void;
icon(id: string, args?: ReadonlyPartialJSONObject): VirtualElement.IRenderer | undefined;
iconClass(id: string, args?: ReadonlyPartialJSONObject): string;
iconLabel(id: string, args?: ReadonlyPartialJSONObject): string;
Expand Down Expand Up @@ -79,6 +80,7 @@ export namespace CommandRegistry {
readonly args: ReadonlyPartialJSONObject;
readonly command: string;
readonly keys: ReadonlyArray<string>;
readonly preventDefault?: boolean;
readonly selector: string;
}
export interface IKeyBindingChangedArgs {
Expand All @@ -91,6 +93,7 @@ export namespace CommandRegistry {
keys: string[];
linuxKeys?: string[];
macKeys?: string[];
preventDefault?: boolean;
selector: string;
winKeys?: string[];
}
Expand Down

0 comments on commit 198250f

Please sign in to comment.