mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-19 05:11:18 -08:00
Make the console survive locked files and private handles, and start with Activities off
AI Assisted
This commit is contained in:
1 parent
c52244bee1
commit
2cb174ecf0
17 files changed
+160
-69
No files matched your search
@@ -231,7 +231,14 @@ export function serverWorkspace(ctx) {
|
||||
}
|
||||
|
||||
function saveWorkspace(ws) {
|
||||
writeWorkspace(dir, ws);
|
||||
try {
|
||||
writeWorkspace(dir, ws);
|
||||
} catch (e) {
|
||||
// The caller changed the cached object before saving: drop it, so the next
|
||||
// read starts from what is on disk and a retry is not told "duplicate".
|
||||
workspaceSeen = { stamp: null, ws: null };
|
||||
throw e;
|
||||
}
|
||||
workspaceSeen = { stamp: fileStamp(WORKSPACE_PATH), ws };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user