deterministic id generator per module (#5811)
* deterministic id generator per module Signed-off-by: Jess Frazelle <github@jessfraz.com> * non Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * do not remake the planes if they are alreaady made; Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * do not remake the planes if they are alreaady made; Signed-off-by: Jess Frazelle <github@jessfraz.com> * clippy Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
@ -14,6 +14,7 @@ import { stringToKclExpression } from './kclHelpers'
|
||||
import { ModelingCommandSchema } from './commandBarConfigs/modelingCommandConfig'
|
||||
import { isDefaultPlaneStr } from './planes'
|
||||
import { Selection, Selections } from './selections'
|
||||
import { rustContext } from './singletons'
|
||||
|
||||
type ExecuteCommandEvent = CommandBarMachineEvent & {
|
||||
type: 'Find and select command'
|
||||
@ -264,7 +265,7 @@ const prepareToEditOffsetPlane: PrepareToEditCallback = async ({
|
||||
// TODO: error handling
|
||||
return baseCommand
|
||||
}
|
||||
const planeId = engineCommandManager.getDefaultPlaneId(planeName)
|
||||
const planeId = rustContext.getDefaultPlaneId(planeName)
|
||||
if (err(planeId)) {
|
||||
// TODO: error handling
|
||||
return baseCommand
|
||||
|
Reference in New Issue
Block a user