Skip to content

Status Bar

Enable the independent status_bar Copier option. Its default follows native_ui; it also works with the minimal preset.

Capability Module Try it
Stable IDs and alignment src/views/statusbar/index.ts Right-click the native status bar to manage named entries
Workspace and editor indicators workspace.ts, editor.ts Switch workspace, editor, selection or diagnostics
Compact icons and accessibility workspace.ts, editor.ts Enable statusBar.compact in Settings
Feature-aware launcher src/commands/statusbar.ts Click the workspace indicator
Trusted tooltip links workspace.ts Hover over the workspace indicator; Inspect or Settings
Progress and cancellation progress.ts Start status bar operation; click the spinner to cancel
Ready, success, warning and error progress.ts Show status bar state
Temporary messages messages.ts Show timed, promise-bound or disposable status message
Task and terminal activity activity.ts Run a task or shell command when the corresponding feature is enabled
Trust and remote context workspace.ts Inspect the workspace tooltip
Notebook cell actions src/notebooks/statusbar.ts Inspect a cell or copy its output

The workspace item appears on the left, editor context on the right. Optional execution and progress items are shown only as needed. The native API supports warning and error backgrounds, not arbitrary backgrounds. Use named ThemeColor values and Codicons. Escape untrusted tooltip text with appendText and allowlist only the intended command links.

const item = vscode.window.createStatusBarItem("example.status", vscode.StatusBarAlignment.Left, 50);
item.name = "Example status";
item.text = "$(check) Ready";
item.accessibilityInformation = { label: "Ready" };
item.show();
context.subscriptions.push(item);
vscode.window.setStatusBarMessage("$(check) Completed", 3000);
vscode.window.setStatusBarMessage("$(loading~spin) Working", operation);
const message = vscode.window.setStatusBarMessage("Temporary status");
message.dispose();

Use native events instead of polling. Settings under the extension ID’s statusBar group take effect without reloading. The independent option omits associated files, settings and commands when disabled.

Run the Ubuntu template and extension-host tests. Screenshots use the manually dispatched Windows WinApp workflow only; the archived gallery need not be refreshed to release.