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

Method init

packages/workspace/src/window.ts:133–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 async init() {
134 await this.initViewTypes();
135 await this.execViewTypesInit();
136 Promise.all(Array.from(this.editorViews.values()).map((d) => d.onSimulatorRendererReady()))
137 .then(() => {
138 this.workspace.emitWindowRendererReady();
139 });
140 this.url = await this.resource.url();
141 this.setDefaultViewName();
142 this.initReady = true;
143 this.workspace.checkWindowQueue();
144 this.sleep = false;
145 this.updateState(WINDOW_STATE.active);
146 }
147
148 initViewTypes = async () => {
149 const editorViews = this.resource.editorViews;

Callers

nothing calls this directly

Calls 7

updateStateMethod · 0.95
mapMethod · 0.65
fromMethod · 0.65
urlMethod · 0.65
checkWindowQueueMethod · 0.65

Tested by

no test coverage detected