Skip to content

Interface: WorkspaceSectionProvider

Defined in: packages/sdk/src/workspace-service.ts:57

A section provider that mounts a React component inside workspace rows in the Workspaces side panel. Register via WorkspaceService.registerSection.

Sections appear below the path line and any status rows. Multiple providers stack vertically in ascending WorkspaceSectionProvider.order order. Return null from your component for workspaces where the section should not appear — this produces no DOM node and no visual gap.

Properties

id

ts
id: string;

Defined in: packages/sdk/src/workspace-service.ts:59

Unique id, conventionally "<extension-id>.section".


component

ts
component: ComponentType<WorkspaceSectionProps>;

Defined in: packages/sdk/src/workspace-service.ts:61

The React component mounted once per workspace row.


order?

ts
optional order?: number;

Defined in: packages/sdk/src/workspace-service.ts:63

Sort order among sections. Lower values appear first. Defaults to 0.