UI fix for comment settings collision (#6249)

* UI fix for comment settings collision

* fmt

* Fix tsc by using Promise.reject

---------

Co-authored-by: Frank Noirot <frankjohnson1993@gmail.com>
This commit is contained in:
Kurt Hutten
2025-04-12 00:16:45 +10:00
committed by GitHub
parent c6ec54c138
commit 121c393466
4 changed files with 36 additions and 13 deletions

View File

@ -18,6 +18,7 @@ import {
EXECUTION_TYPE_REAL,
} from '@src/lib/constants'
import type { Selections } from '@src/lib/selections'
import { err, reject } from '@src/lib/trap'
/**
* Updates the complete modeling state:
@ -89,7 +90,10 @@ export async function updateModelingState(
ast: updatedAst.newAst,
})
} else if (executionType === EXECUTION_TYPE_MOCK) {
await dependencies.kclManager.executeAstMock(updatedAst.newAst)
const didReParse = await dependencies.kclManager.executeAstMock(
updatedAst.newAst
)
if (err(didReParse)) return reject(didReParse)
} else if (executionType === EXECUTION_TYPE_NONE) {
// No execution.
}