Clear diagnostics when unmounting code editor!

This commit is contained in:
lee-at-zoo-corp
2025-03-24 12:06:16 -04:00
parent fbefff490c
commit 12bf41ab7e

View File

@ -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 = []
}
}, [])