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' })
|
let code = await window.electron.readFile(path, { encoding: 'utf-8' })
|
||||||
code = normalizeLineEndings(code)
|
code = normalizeLineEndings(code)
|
||||||
codeManager.updateCodeStateEditor(code)
|
codeManager.updateCodeStateEditor(code)
|
||||||
|
await kclManager.executeCode()
|
||||||
} else if (isImportedInCurrentFile && eventType === 'change') {
|
} else if (isImportedInCurrentFile && eventType === 'change') {
|
||||||
await kclManager.executeAst()
|
await kclManager.executeAst()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user