Hide the view until the scene is initially built (#2894)

* Hide the view until the scene is initially built

* fmt

* Remove log
This commit is contained in:
49fl
2024-07-04 01:40:45 -04:00
committed by GitHub
parent 1257ec0327
commit fb3e922180
6 changed files with 32 additions and 6 deletions

View File

@ -175,7 +175,11 @@ const FileTreeItem = ({
codeManager.code
)
codeManager.writeToFile()
kclManager.executeCode(true, true)
kclManager.isFirstRender = true
kclManager.executeCode(true, true).then(() => {
kclManager.isFirstRender = false
})
} else {
// Let the lsp servers know we closed a file.
onFileClose(currentFile?.path || null, project?.path || null)