refactor(plugin-api): clean up workspace panel context

This commit is contained in:
Federico Jaramillo Martinez
2026-06-04 15:38:18 +02:00
parent bd8d1f1f08
commit f1c8f1f014
6 changed files with 26 additions and 13 deletions
+5 -2
View File
@@ -124,14 +124,17 @@ export interface WorkspacePanelTerminal {
runCommand(input: WorkspaceTerminalCommandInput): Promise<TerminalCommandRunHandle>;
}
export interface WorkspacePanelHost {
requestRender(): void;
}
export interface WorkspacePanelContext {
machine: PluginMachine;
workspace: Workspace;
state?: PluginRuntimeState;
files: WorkspacePanelFiles;
terminal: WorkspacePanelTerminal;
requestRender: () => void;
openTerminal: (options?: { terminalId?: string | undefined }) => void;
host: WorkspacePanelHost;
}
export type WorkspacePanelIcon = TemplateResult;