From 652519aeaeeca20b09d6f968bccdac843b895baf Mon Sep 17 00:00:00 2001 From: Kevin Nadro Date: Tue, 19 Nov 2024 11:10:08 -0500 Subject: [PATCH] fix: center rectangle code writing bug (#4512) fix: bug that did not write the code to the editor when the workflow finished --- src/clientSideScene/sceneEntities.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/clientSideScene/sceneEntities.ts b/src/clientSideScene/sceneEntities.ts index d0142f809..947bbcb82 100644 --- a/src/clientSideScene/sceneEntities.ts +++ b/src/clientSideScene/sceneEntities.ts @@ -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,