Type Alias: ToolbarItemContribution<S>
ts
type ToolbarItemContribution<S> =
| ToolbarCommandItemContribution<S>
| ToolbarMenuItemContribution<S>
| ToolbarSeparatorContribution<S>
| ToolbarSpacerContribution<S>;Defined in: packages/sdk/src/toolbar-items.ts:217
Adds a control or chrome element to the trailing cluster of a host-drawn toolbar — the editor breadcrumb, the Navigator header, or a dock panel's strip (the terminal included; see ToolbarSurface). Register via ExtensionContext.registerToolbarItem.
Interactive items set exactly one of command or menu. Separators and spacers use type: "separator" | "spacer".
Contributions are independent of context-menu items — an extension may register either, both, or neither. Hosts only render items while that surface's breadcrumbs setting is on.
Type Parameters
S
S extends ToolbarSurface = ToolbarSurface