From 693c01df537bff4d69551965677e9e31a943ef9e Mon Sep 17 00:00:00 2001 From: Rahul Yadav Date: Mon, 30 Oct 2023 22:03:49 +0530 Subject: [PATCH] Enable debug for tact and resolve log render issue --- src/components/workspace/WorkSpace/WorkSpace.tsx | 5 ++++- src/hooks/project.hooks.ts | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/workspace/WorkSpace/WorkSpace.tsx b/src/components/workspace/WorkSpace/WorkSpace.tsx index da8690e..957b9af 100644 --- a/src/components/workspace/WorkSpace/WorkSpace.tsx +++ b/src/components/workspace/WorkSpace/WorkSpace.tsx @@ -68,7 +68,10 @@ const WorkSpace: FC = () => { if (!_log.includes('DEBUG')) { return; } - createLog(_log); + const splittedLog = _log.split('\n'); + for (let i = 0; i < splittedLog.length; i++) { + createLog(splittedLog[i], 'info', true, true); + } }; Analytics.track('Project Opened', { diff --git a/src/hooks/project.hooks.ts b/src/hooks/project.hooks.ts index 1120433..881dcba 100644 --- a/src/hooks/project.hooks.ts +++ b/src/hooks/project.hooks.ts @@ -188,6 +188,9 @@ export function useProjectActions() { path: file.path!!, output: 'dist', name: 'tact', + options: { + debug: true, + }, }, project: fs, stdlib: '@stdlib',