reexecute KCL code when reloading due to external file modification (#7293)
Co-authored-by: Lucas Kent <rubickent@gmail.com>
This commit is contained in:
@ -245,6 +245,7 @@ const FileTreeItem = ({
|
||||
let code = await window.electron.readFile(path, { encoding: 'utf-8' })
|
||||
code = normalizeLineEndings(code)
|
||||
codeManager.updateCodeStateEditor(code)
|
||||
await kclManager.executeCode()
|
||||
} else if (isImportedInCurrentFile && eventType === 'change') {
|
||||
await kclManager.executeAst()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user