@industry-theme/xterm-terminal-panel 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1565,6 +1565,20 @@ var TabbedTerminalPanelInner = ({
|
|
|
1565
1565
|
hasInitializedRef.current = true;
|
|
1566
1566
|
restoreOwnedSessions();
|
|
1567
1567
|
}, []);
|
|
1568
|
+
useEffect3(() => {
|
|
1569
|
+
const handleSessionCreated2 = (event) => {
|
|
1570
|
+
const customEvent = event;
|
|
1571
|
+
const { context } = customEvent.detail || {};
|
|
1572
|
+
if (context && context.startsWith(terminalContext)) {
|
|
1573
|
+
console.log("[TabbedTerminalPanel] External session created, restoring owned sessions...");
|
|
1574
|
+
restoreOwnedSessions();
|
|
1575
|
+
}
|
|
1576
|
+
};
|
|
1577
|
+
window.addEventListener("terminal-session-created", handleSessionCreated2);
|
|
1578
|
+
return () => {
|
|
1579
|
+
window.removeEventListener("terminal-session-created", handleSessionCreated2);
|
|
1580
|
+
};
|
|
1581
|
+
}, [terminalContext, restoreOwnedSessions]);
|
|
1568
1582
|
useEffect3(() => {
|
|
1569
1583
|
if (showAllTerminals) {
|
|
1570
1584
|
fetchForeignSessions();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabbedTerminalPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/TabbedTerminalPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAKN,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EACV,wBAAwB,EAKzB,MAAM,gBAAgB,CAAC;AAwBxB,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;
|
|
1
|
+
{"version":3,"file":"TabbedTerminalPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/TabbedTerminalPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAKN,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EACV,wBAAwB,EAKzB,MAAM,gBAAgB,CAAC;AAwBxB,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAqmCD,eAAO,MAAM,mBAAmB,sDAmB9B,CAAC"}
|
package/package.json
CHANGED