improve vitest hang (#1470)

* improve vitest hang

* fmt

* make types happy

* fix types

* fix
This commit is contained in:
Kurt Hutten
2024-02-21 13:23:50 +11:00
committed by GitHub
parent cbd26d29fa
commit 0d8804005a
6 changed files with 432 additions and 369 deletions

View File

@ -211,7 +211,7 @@ class KclManager {
console.error('error parsing code', e)
if (e instanceof KCLError) {
this.kclErrors = [e]
if (e.msg === 'file is empty') engineCommandManager.endSession()
if (e.msg === 'file is empty') engineCommandManager?.endSession()
}
return null
}