reexecute KCL code when reloading due to external file modification (#7293)

Co-authored-by: Lucas Kent <rubickent@gmail.com>
This commit is contained in:
Jonathan Tran
2025-06-06 12:44:40 -04:00
committed by GitHub
parent a1ac029333
commit 1fd4e93091

View File

@ -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()
}