(id: string)
| 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) { |
nothing calls this directly
no test coverage detected