feat(plugins): open workbench in tabs from dock surfaces

This commit is contained in:
Jinpy authored and GitHub committed 2026-09-30 21:22:25 +08:00
1 parent bba60bfa86
commit 0212231421
6 files changed
+31 -11

No files matched your search

@@ -27,7 +27,8 @@ export interface PluginDockEntry {
instanceKey?: string;
title: string;
icon?: string;
/** Host-authored context: workbenchId=id, restored=false, surface="panel". */
/** Host-authored context: workbenchId=id, restored=false, surface="dock". */
/** Surface vocabulary (open set, unknown falls back): "tab" (main multi-tab workbench) / "dock" (bottom dock, was "panel" — renamed 2026-09-30) / "sidebar-left" / "sidebar-right" / "window" (reserved). */
context: Record<string, unknown>;
}
@@ -78,7 +79,7 @@ export function addPluginDockEntry(payload: AddPluginDockEntryPayload): string {
...(payload.commandContext ?? {}),
workbenchId: id,
restored: false,
surface: "panel",
surface: "dock",
},
});
activeEntryId.value = id;