mirror of
https://github.com/getpaseo/paseo.git
synced 2026-12-01 12:46:55 +00:00
Plugins can open, focus, move and close a workspace's panes and tabs, show or hide the Explorer, and read the layout, through a handle available in components, the client entry and commands. Requires Paseo 0.18.3 or later. `openPanel` is deprecated and behaves as before. Tab closing moved out of the workspace screen into `@/workspace-tabs/close`, so plugin and UI closes share the same unsaved-work and destructive prompts. Also fixes two problems a plugin's arrangement could reach: a chat in a phone's Explorer overlay never loaded, and a sheet from a hidden workspace was presented over the workspace on screen. Includes two test-only repairs for CI failures outside this change: an ACP interrupt test with a too-short grace period, and a terminal lifecycle test whose failure message carried no daemon output.
10 lines
360 B
TypeScript
10 lines
360 B
TypeScript
import type { PluginServerContext } from "@getpaseo/plugin/server";
|
|
import { listFindings, readOutline } from "./server/files";
|
|
import { findingsRpc, outlineRpc } from "./shared/files";
|
|
|
|
export default function contribute(server: PluginServerContext) {
|
|
server.handle(findingsRpc, listFindings);
|
|
server.handle(outlineRpc, readOutline);
|
|
return () => {};
|
|
}
|