@aion0/forge 0.2.33 → 0.2.34
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/lib/terminal-standalone.ts +1 -11
- package/package.json +1 -1
|
@@ -53,17 +53,7 @@ function loadTerminalState(): unknown {
|
|
|
53
53
|
function saveTerminalState(data: unknown): void {
|
|
54
54
|
try {
|
|
55
55
|
mkdirSync(STATE_DIR, { recursive: true });
|
|
56
|
-
|
|
57
|
-
writeFileSync(STATE_FILE, json);
|
|
58
|
-
// Debug: check if projectPath is being saved
|
|
59
|
-
const parsed = JSON.parse(json);
|
|
60
|
-
if (parsed.tabs) {
|
|
61
|
-
for (const t of parsed.tabs) {
|
|
62
|
-
if (t.projectPath || t.tree?.projectPath) {
|
|
63
|
-
console.log(`[terminal] Saved tab "${t.label}" with projectPath: tab=${t.projectPath} tree=${t.tree?.projectPath}`);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
56
|
+
writeFileSync(STATE_FILE, JSON.stringify(data, null, 2));
|
|
67
57
|
} catch (e) {
|
|
68
58
|
console.error('[terminal] Failed to save state:', e);
|
|
69
59
|
}
|
package/package.json
CHANGED