Command represents a particular invocation of a registered command.

interface Command {
    arguments?: unknown[];
    id: string;
    title?: string;
    tooltip?: string;
}

Properties

arguments?: unknown[]

Arguments that the command handler should be invoked with.

id: string

The identifier of the actual command handler.

title?: string

Title of the command invocation, like "Add local variable 'foo'".

tooltip?: string

A tooltip for for command, when represented in the UI.