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:
@ -7,6 +7,7 @@ import { UAParser } from 'ua-parser-js'
|
||||
import screenshot from 'lib/screenshot'
|
||||
import { VITE_KC_API_BASE_URL } from 'env'
|
||||
import CodeManager from 'lang/codeManager'
|
||||
import RustContext from 'lib/rustContext'
|
||||
|
||||
/* eslint-disable suggest-no-throw/suggest-no-throw --
|
||||
* All the throws in CoreDumpManager are intentional and should be caught and handled properly
|
||||
@ -29,16 +30,19 @@ import CodeManager from 'lang/codeManager'
|
||||
export class CoreDumpManager {
|
||||
engineCommandManager: EngineCommandManager
|
||||
codeManager: CodeManager
|
||||
rustContext: RustContext
|
||||
token: string | undefined
|
||||
baseUrl: string = VITE_KC_API_BASE_URL
|
||||
|
||||
constructor(
|
||||
engineCommandManager: EngineCommandManager,
|
||||
codeManager: CodeManager,
|
||||
rustContext: RustContext,
|
||||
token: string | undefined
|
||||
) {
|
||||
this.engineCommandManager = engineCommandManager
|
||||
this.codeManager = codeManager
|
||||
this.rustContext = rustContext
|
||||
this.token = token
|
||||
}
|
||||
|
||||
@ -218,14 +222,14 @@ export class CoreDumpManager {
|
||||
)
|
||||
}
|
||||
|
||||
// default planes - this.engineCommandManager.defaultPlanes
|
||||
if (this.engineCommandManager?.defaultPlanes) {
|
||||
// default planes - this.rustContext.defaultPlanes
|
||||
if (this.rustContext.defaultPlanes) {
|
||||
debugLog(
|
||||
'CoreDump: Engine Command Manager default planes',
|
||||
this.engineCommandManager.defaultPlanes
|
||||
this.rustContext.defaultPlanes
|
||||
)
|
||||
clientState.engine_command_manager.default_planes = structuredClone(
|
||||
this.engineCommandManager.defaultPlanes
|
||||
this.rustContext.defaultPlanes
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user