diff --git a/src/contexts/workspace-context.ts b/src/contexts/workspace-context.ts index 80d3db5..02178be 100644 --- a/src/contexts/workspace-context.ts +++ b/src/contexts/workspace-context.ts @@ -328,7 +328,7 @@ export const useWorkspace = create((set, get) => ({ processNode(tree.root); } if (tree) { - fs.writeFileSync(file.path, JSON.stringify(tree)); + fs.writeFileSync(file.path, JSON.stringify(tree, null, 2)); } }); } catch (error) {