From 12bf41ab7ecb94ae631f8ee671ab486cc570ff0c Mon Sep 17 00:00:00 2001 From: lee-at-zoo-corp Date: Mon, 24 Mar 2025 12:06:16 -0400 Subject: [PATCH] Clear diagnostics when unmounting code editor! --- src/components/ModelingSidebar/ModelingPanes/KclEditorPane.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ModelingSidebar/ModelingPanes/KclEditorPane.tsx b/src/components/ModelingSidebar/ModelingPanes/KclEditorPane.tsx index 1be883363..79daaef53 100644 --- a/src/components/ModelingSidebar/ModelingPanes/KclEditorPane.tsx +++ b/src/components/ModelingSidebar/ModelingPanes/KclEditorPane.tsx @@ -90,7 +90,7 @@ export const KclEditorPane = () => { return () => { kclEditorActor.send({ type: 'setKclEditorMounted', data: false }) kclEditorActor.send({ type: 'setLastSelectionEvent', data: undefined }) - console.log('kclEditorActor cleanup') + kclManager.diagnostics = [] } }, [])