Skip to content

Interface: WorkspaceBadgeProvider

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

A badge binder that contributes WorkspaceBadges next to the workspace name in the Workspaces side panel. Prefer WorkspaceService.bindBadge; WorkspaceService.registerBadge remains as a deprecated alias.

Properties

id

ts
id: string;

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

Unique id for this binder — conventionally "<extension-id>.badges".

Methods

provide()

ts
provide(workspaceId): WorkspaceBadge[];

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

Called synchronously for each workspace during render. Return an empty array to contribute nothing for this workspace.

Parameters

workspaceId

string

Returns

WorkspaceBadge[]