Deflake project settings override on desktop (#4370)

This commit is contained in:
49fl
2024-10-31 21:42:52 -04:00
committed by GitHub
parent 26951364cf
commit ad1cd56891
8 changed files with 49 additions and 34 deletions

View File

@ -429,13 +429,9 @@ export class KclManager {
// Update the code state and the editor.
codeManager.updateCodeStateEditor(code)
// Write back to the file system.
// eslint-disable-next-line @typescript-eslint/no-floating-promises
codeManager.writeToFile()
// execute the code.
// eslint-disable-next-line @typescript-eslint/no-floating-promises
this.executeCode()
// Write back to the file system.
void codeManager.writeToFile().then(() => this.executeCode())
}
// There's overlapping responsibility between updateAst and executeAst.
// updateAst was added as it was used a lot before xState migration so makes the port easier.