You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A plugin can place tool windows and commands in the workbench. The window shell (docking, title, activity bar, order, layout, theme, lifecycle) always belongs to the host; the plugin supplies only the content: plain text, a packaged web page, or a plugin view: a backend function returns a UI tree (host controls and trees) and canvas nodes that the host draws with native controls. The same plugin views can also sit in a settings region of a settings page. A command can open one of the plugin's windows, or open none and only notify the backend.
Pages call the plugin backend through functions.*; for a plugin view the host calls the view function through lithe/function/invoke once per event and passes each result to the Core command plugins.ui.applyResult; a command without a window notifies the backend with lithe/host/commands/didRun (litheFunctions 0)
ui.contribute; ui.web for web pages; backend.launch for a command without a window; window.messages for messages shown by the backend
Activation events
onView:<window-id> per window, onCommand:<command-id> per command
Lithe desktop
Declares ui 0 and presents text, web, and plugin view tool windows, and commands that open a tool window; plugin views draw their host controls, trees, and canvases natively with Viva. It does not present commands that belong to no tool window: such packages install, but those commands have no entry point
Rules
Tool windows: 1–64. Each has a stable id, title, initial placement (left, bottom, or right), integer order (default 0), and exactly one kind of content: text (plain text), web (a packaged page), or view (a plugin view).
Commands: up to 128. placements is nonempty and takes commandPalette, toolbar, or menu. A command with toolWindowID opens one of the same plugin's windows. A command without toolWindowID only notifies the backend; toolWindows may then be empty or omitted.
Web windows: web.entry is a package-relative .html path and requires the ui.web permission. The bridge and lifecycle are in Web content.
Plugin views: view.function is a private function of the plugin's backend; the manifest needs backend, ui 0, and the ui.contribute permission. The host calls it once per event (open, click, change, select, viewport, and so on), with the window's workspace context when the view is shown for a workspace, and it returns a whole view or patches by node ID. A view holds at most 512 UI nodes, depth 16, 2000 tree items and 8 canvases of at most 2000 nodes each; a result over budget or against a surface rule is refused whole, and the host keeps the last view with an error and Retry. A tool window cannot bind settings, and a settings region cannot show a tree. A tool row with choose in a settings region is the tool's picker. All official SDKs declare a view function with view(id, handler) (View(id, handler) in Go) (Node.js, Rust, Go, Java).
Commands without a window: require backend (in requires), ui.contribute, and backend.launch, plus the onCommand:<command-id> activation event. commands/didRun is an event; it does not show that the command's business action succeeded.
Every ID starts with the plugin ID and a dot. Titles are at most 256 bytes and window text at most 65536 bytes; text is shown literally and never evaluated as HTML or script.