feat(app): make Explorer a first-class pane host (#3826)

This commit is contained in:
Mohamed Boudra
2026-08-25 13:25:57 +02:00
committed by GitHub
parent 54299a2e6c
commit c914bcb44b
191 changed files with 8634 additions and 4730 deletions
+9 -2
View File
@@ -63,10 +63,17 @@ export interface PluginAgentSnapshot {
readonly labels: Readonly<Record<string, string>>;
}
export type PluginPanelLocation = "workspace" | "explorer";
export interface PluginOpenPanelOptions {
location?: PluginPanelLocation;
}
interface PluginWorkspacePanelBase {
id: string;
title: string;
icon: string;
locations?: readonly PluginPanelLocation[];
}
export interface PluginWorkspacePanelProps extends PluginHostProps {
@@ -145,14 +152,14 @@ export interface PluginGlobalCommandContext extends PluginCommandCapabilities {
export interface PluginWorkspaceCommandContext extends PluginCommandCapabilities {
context: "workspace";
workspace: PluginWorkspaceSnapshot;
openPanel(id: string): void;
openPanel(id: string, options?: PluginOpenPanelOptions): void;
}
export interface PluginAgentCommandContext extends PluginCommandCapabilities {
context: "agent";
workspace: PluginWorkspaceSnapshot;
agent: PluginAgentSnapshot;
openPanel(id: string): void;
openPanel(id: string, options?: PluginOpenPanelOptions): void;
}
interface PluginCommandCenterItemBase {
+2
View File
@@ -20,6 +20,8 @@ export type {
PluginGlobalCommandContext,
PluginHandlerContext,
PluginHostProps,
PluginOpenPanelOptions,
PluginPanelLocation,
PluginTheme,
PluginSidebarContribution,
PluginSurfaceContribution,