Clear diagnostics when unmounting code editor!
This commit is contained in:
		@ -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 = []
 | 
			
		||||
    }
 | 
			
		||||
  }, [])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user