-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreplace_sessionStore.patch
More file actions
40 lines (38 loc) · 1.57 KB
/
replace_sessionStore.patch
File metadata and controls
40 lines (38 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<<<<<<< SEARCH
export interface PaneLeaf {
type: 'leaf';
paneId: string; // unique per pane, used as React key / activePaneId
paneType: 'welcome' | 'terminal' | 'plugin';
sessionId: string | null; // SSH session id
config: any | null; // SSH config (host, user, …)
isDisconnected?: boolean; // persisted disconnect state — survives re-renders
}
=======
export type PaneConfig = SSHConnectConfig | { pluginUrl: string } | { isSettings: true } | null;
export const isSSHConfig = (config: PaneConfig): config is SSHConnectConfig => {
return config !== null && typeof config === 'object' && !('isSettings' in config) && !('pluginUrl' in config);
};
export interface PaneLeaf {
type: 'leaf';
paneId: string; // unique per pane, used as React key / activePaneId
paneType: 'welcome' | 'terminal' | 'plugin';
sessionId: string | null; // SSH session id
config: PaneConfig; // SSH config (host, user, …)
isDisconnected?: boolean; // persisted disconnect state — survives re-renders
}
>>>>>>> REPLACE
<<<<<<< SEARCH
export interface Tab {
id: string; // same as the root pane's sessionId (for compat)
title: string;
config: any; // root SSH config (kept for backward compat)
paneTree?: PaneNode; // undefined → legacy single-pane mode
}
=======
export interface Tab {
id: string; // same as the root pane's sessionId (for compat)
title: string;
config: PaneConfig; // root SSH config (kept for backward compat)
paneTree?: PaneNode; // undefined → legacy single-pane mode
}
>>>>>>> REPLACE