fix: center rectangle code writing bug (#4512)

fix: bug that did not write the code to the editor when the workflow finished
This commit is contained in:
Kevin Nadro
2024-11-19 11:10:08 -05:00
committed by GitHub
parent f826afb32d
commit 652519aeae

View File

@ -1178,6 +1178,11 @@ export class SceneEntities {
await kclManager.executeAstMock(_ast)
sceneInfra.modelingSend({ type: 'Finish center rectangle' })
// lee: I had this at the bottom of the function, but it's
// possible sketchFromKclValue "fails" when sketching on a face,
// and this couldn't wouldn't run.
await codeManager.updateEditorWithAstAndWriteToFile(_ast)
const { execState } = await executeAst({
ast: _ast,
useFakeExecutor: true,