Skip to content

UIAPI

Defined in: namespaces.ts:375

registerPanel(id, options): string

Defined in: namespaces.ts:378

Registers a structured panel (sidebar or pane).

string

PanelOptions

string


updatePanel(id, options): string

Defined in: namespaces.ts:380

Updates an existing structured panel’s content.

string

Partial<PanelOptions>

string


registerSidebarPanel(id, options): string

Defined in: namespaces.ts:382

string

PanelOptions

string


registerActivityBarItem(id, options): string

Defined in: namespaces.ts:384

Registers an activity bar item.

string

ActivityBarItemOptions

string


registerActivityView(id, options): string

Defined in: namespaces.ts:386

Registers a structured activity sidebar view.

string

ActivityViewOptions

string


registerStatusBarItem(id, options): string

Defined in: namespaces.ts:388

Registers a status bar item.

string

StatusBarItemOptions

string


unregister(tokenId): void

Defined in: namespaces.ts:390

Unregisters an existing slot-based UI contribution.

string

void


showPanel(id, options): string

Defined in: namespaces.ts:392

Registers a content panel.

string

PanelOptions

string


registerContextMenuItem(id, options): string

Defined in: namespaces.ts:394

Registers a context menu item.

string

ContextMenuItemOptions

string


registerToolbarItem(id, options): string

Defined in: namespaces.ts:396

Registers a toolbar item.

string

ToolbarItemOptions

string


registerFileRowAnnotation(id, options): string

Defined in: namespaces.ts:398

Registers a file row annotation provider.

string

FileRowAnnotationOptions

string


registerProfile(options): string

Defined in: namespaces.ts:400

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

unknown

string


showNotification(options): void

Defined in: namespaces.ts:404

Shows a notification toast.

NotificationOptions

void


showSheet(options): void

Defined in: namespaces.ts:406

Shows a modal sheet.

SheetOptions

void


setQuickFilter(text): void

Defined in: namespaces.ts:410

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

string

void


showPaneTab(id, options?): string

Defined in: namespaces.ts:414

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

string

string

"left" | "right"

string


hidePaneTab(id): string

Defined in: namespaces.ts:416

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

string

string


openInPane(url, options?): string

Defined in: namespaces.ts:421

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:423

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:425

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:427

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:429

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:431

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:440

Registers a WebView panel definition. Returns a registration id.

string

WebPanelOptions

string


postToWebPanel(panelId, message, options?): unknown

Defined in: namespaces.ts:442

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

string

unknown

string

unknown


onWebPanelMessage(panelId, handler): string

Defined in: namespaces.ts:444

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:446

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

string

(message) => unknown

string


pipeShellToWebPanel(panelId, shellOptions): Promise<ShellExecuteResult>

Defined in: namespaces.ts:448

Pipes shell output to WebView panel instances.

string

ShellExecuteOptions

Promise<ShellExecuteResult>