Skip to content

Commit

Permalink
feat(workspace): when the sleep window is opened, the active window e…
Browse files Browse the repository at this point in the history
…vent is not triggered
  • Loading branch information
liujuping committed Aug 2, 2023
1 parent 14390f0 commit b050498
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/workspace/src/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,12 @@ export class Workspace implements IWorkspace {
});
this.windows = [...this.windows, window];
this.editorWindowMap.set(window.id, window);
if (!sleep) {
this.window = window;
await this.window.init();
if (sleep) {
this.emitChangeWindow();
return;
}
this.window = window;
await this.window.init();
this.emitChangeWindow();
this.emitChangeActiveWindow();
this.window?.updateState(WINDOW_STATE.active);
Expand Down

0 comments on commit b050498

Please sign in to comment.