MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / openEditorWindowById

Method openEditorWindowById

packages/workspace/src/workspace.ts:242–253  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

240 }
241
242 async openEditorWindowById(id: string) {
243 const window = this.editorWindowMap.get(id);
244 this.window?.updateState(WINDOW_STATE.inactive);
245 if (window) {
246 this.window = window;
247 if (window.sleep) {
248 await window.init();
249 }
250 this.emitChangeActiveWindow();
251 }
252 this.window?.updateState(WINDOW_STATE.active);
253 }
254
255 async openEditorWindowByResource(resource: IResource, sleep: boolean = false): Promise<void> {
256 if (this.window && !this.window.sleep && !this.window?.initReady && !sleep) {

Callers

nothing calls this directly

Calls 4

getMethod · 0.65
updateStateMethod · 0.65
initMethod · 0.65

Tested by

no test coverage detected