Skip to content

UIAPI

Defined in: namespaces.ts:374

registerPanel(id, options): string

Defined in: namespaces.ts:377

Registers a structured panel (sidebar or pane).

string

PanelOptions

string


updatePanel(id, options): string

Defined in: namespaces.ts:379

Updates an existing structured panel’s content.

string

Partial<PanelOptions>

string


registerSidebarPanel(id, options): string

Defined in: namespaces.ts:381

string

PanelOptions

string


registerActivityBarItem(id, options): string

Defined in: namespaces.ts:383

Registers an activity bar item.

string

ActivityBarItemOptions

string


registerActivityView(id, options): string

Defined in: namespaces.ts:385

Registers a structured activity sidebar view.

string

ActivityViewOptions

string


registerStatusBarItem(id, options): string

Defined in: namespaces.ts:387

Registers a status bar item.

string

StatusBarItemOptions

string


unregister(tokenId): void

Defined in: namespaces.ts:389

Unregisters an existing slot-based UI contribution.

string

void


showPanel(id, options): string

Defined in: namespaces.ts:391

Registers a content panel.

string

PanelOptions

string


registerContextMenuItem(id, options): string

Defined in: namespaces.ts:393

Registers a context menu item.

string

ContextMenuItemOptions

string


registerToolbarItem(id, options): string

Defined in: namespaces.ts:395

Registers a toolbar item.

string

ToolbarItemOptions

string


registerFileRowAnnotation(id, options): string

Defined in: namespaces.ts:397

Registers a file row annotation provider.

string

FileRowAnnotationOptions

string


registerProfile(options): string

Defined in: namespaces.ts:399

Registers a profile contribution. Returns a SlotToken id for unregister.

unknown

string


showNotification(options): void

Defined in: namespaces.ts:403

Shows a notification toast.

NotificationOptions

void


showSheet(options): void

Defined in: namespaces.ts:405

Shows a modal sheet.

SheetOptions

void


setQuickFilter(text): void

Defined in: namespaces.ts:409

Sets the quick filter text on the active pane’s file list.

string

void


showPaneTab(id, options?): string

Defined in: namespaces.ts:413

Opens or focuses a pane tab that renders a previously registered panel.

string

string

"left" | "right"

string


hidePaneTab(id): string

Defined in: namespaces.ts:415

Closes any open pane tabs for the given panel ID across both panes.

string

string


openInPane(url, options?): string

Defined in: namespaces.ts:420

Opens a file in an in-pane viewer tab. Returns a viewer id.

string

"left" | "right"

"view"

string


openTerminal(workingDirectory, options?): string

Defined in: namespaces.ts:422

Opens a terminal tab at the given working directory. Returns a viewer id.

string

"left" | "right"

string


openEditor(url, options?): string

Defined in: namespaces.ts:424

Opens a code editor tab for the given file URL. Returns a viewer id.

string

"left" | "right"

string


openWebView(url, options?): string

Defined in: namespaces.ts:426

Opens a web browser tab for the given URL. Returns a viewer id.

string

"left" | "right"

string


openMarkdownPreview(url, options?): string

Defined in: namespaces.ts:428

Opens a markdown preview tab for the given file URL. Returns a viewer id.

string

"left" | "right"

string


openAIChat(options?): string

Defined in: namespaces.ts:430

Opens a new AI chat pane tab with optional prefill. Returns a viewer id.

"left" | "right"

string

string

string[]

string


registerWebPanel(id, options): string

Defined in: namespaces.ts:439

Registers a WebView panel definition. Returns a registration id.

string

WebPanelOptions

string


postToWebPanel(panelId, message, options?): unknown

Defined in: namespaces.ts:441

Posts a JSON message to active WebView instances of a panel.

string

unknown

string

unknown


onWebPanelMessage(panelId, handler): string

Defined in: namespaces.ts:443

Registers a fire-and-forget message handler for WebView messages. Returns a token.

string

(message) => void

string


onWebPanelRequest(panelId, handler): string

Defined in: namespaces.ts:445

Registers a request/response handler for WebView messages. Returns a token.

string

(message) => unknown

string


pipeShellToWebPanel(panelId, shellOptions): Promise<ShellExecuteResult>

Defined in: namespaces.ts:447

Pipes shell output to WebView panel instances.

string

ShellExecuteOptions

Promise<ShellExecuteResult>