Add comment about mock engine

This commit is contained in:
Jonathan Tran
2025-03-07 18:04:36 -05:00
parent 0130d19cfb
commit 219bc4c8a3

View File

@ -228,6 +228,10 @@ pub trait EngineManager: std::fmt::Debug + Send + Sync + 'static {
cmd: &ModelingCmd,
) -> Result<(), crate::errors::KclError> {
// In isolated mode, we don't send the command to the engine.
//
// Note: It's important to allow commands through for the mock engine
// because it needs the commands to build the artifact graph in sketch
// mode.
if self.execution_kind().await.is_isolated() {
return Ok(());
}
@ -253,6 +257,10 @@ pub trait EngineManager: std::fmt::Debug + Send + Sync + 'static {
cmd: &ModelingCmd,
) -> Result<(), crate::errors::KclError> {
// In isolated mode, we don't send the command to the engine.
//
// Note: It's important to allow commands through for the mock engine
// because it needs the commands to build the artifact graph in sketch
// mode.
if self.execution_kind().await.is_isolated() {
return Ok(());
}