We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15f5675 commit cf3d7a8Copy full SHA for cf3d7a8
packages/workspace/src/workspace.ts
@@ -266,10 +266,12 @@ export class Workspace implements IWorkspace {
266
});
267
this.windows = [...this.windows, window];
268
this.editorWindowMap.set(window.id, window);
269
- if (!sleep) {
270
- this.window = window;
271
- await this.window.init();
+ if (sleep) {
+ this.emitChangeWindow();
+ return;
272
}
273
+ this.window = window;
274
+ await this.window.init();
275
this.emitChangeWindow();
276
this.emitChangeActiveWindow();
277
this.window?.updateState(WINDOW_STATE.active);
0 commit comments