Skip to content

Command Palette

CommandPaletteSDK

CommandPaletteSDK = object

Utilities to interact with the command palette.

Properties

pushView()

pushView: (view: CommandPaletteView) => void

Push a new view onto the command palette view stack.

Parameters
ParameterTypeDescription
viewCommandPaletteViewThe view to push onto the stack.
Returns

void

register()

register: (commandId: CommandID) => void

Register a command.

Parameters
ParameterTypeDescription
commandIdCommandIDThe id of the command to register.
Returns

void


CommandPaletteView

CommandPaletteView = object

Command palette view definition for custom UI content.

Properties

definition

definition: ComponentDefinition

type

type: "Custom"