From 9264d0d28a434cbc13faec56eb52d02cf5e7c60e Mon Sep 17 00:00:00 2001 From: codetypes Date: Tue, 16 Jul 2024 16:54:36 +0800 Subject: [PATCH] format batch file --- src/contexts/workspace-context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {