Interface: ToolbarItemContext
Defined in: packages/sdk/src/toolbar-items.ts:37
The typed target each ToolbarSurface passes to an invoked command and to when / checked / ToolbarMenuItemContribution.menu builders.
Properties
editor
ts
editor: object;Defined in: packages/sdk/src/toolbar-items.ts:38
editorId
ts
editorId: string;navigator
ts
navigator: object;Defined in: packages/sdk/src/toolbar-items.ts:39
viewId
ts
viewId: string;panel
ts
panel: object;Defined in: packages/sdk/src/toolbar-items.ts:48
panelId and kindId identify the panel; workspaceId is the workspace whose dock the panel lives in (each workspace has its own dock, and the host knows which at the time it draws the strip); params is the panel's own serialized parameters (DockPanelProps["params"]) — read-only, so an item can key on instance data (e.g. the terminal's params.terminalId) or act on the owning workspace without a lookup the SDK does not offer.
panelId
ts
panelId: string;kindId
ts
kindId: string;workspaceId
ts
workspaceId: string;params
ts
params: Readonly<Record<string, unknown>>;