MCPcopy
hub / github.com/alibaba/lowcode-engine / updateState

Method updateState

packages/workspace/src/window.ts:82–93  ·  view source on GitHub ↗
(state: WINDOW_STATE)

Source from the content-addressed store, hash-verified

80 }
81
82 updateState(state: WINDOW_STATE): void {
83 switch (state) {
84 case WINDOW_STATE.active:
85 this._editorView?.setActivate(true);
86 break;
87 case WINDOW_STATE.inactive:
88 this._editorView?.setActivate(false);
89 break;
90 case WINDOW_STATE.destroyed:
91 break;
92 }
93 }
94
95 async importSchema(schema: any) {
96 const newSchema = await this.resource.import(schema);

Callers 2

constructorMethod · 0.95
initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected