Skip to content

Commit

Permalink
feat(workspace): fix onWindowRendererReady api
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Sep 4, 2023
1 parent f48c49c commit 91704e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/workspace/src/layouts/workbench.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Workbench extends Component<{
<SkeletonContext.Provider value={skeleton}>
<TopArea area={skeleton.topArea} itemClassName={topAreaItemClassName} />
<div className="lc-workspace-workbench-body">
<LeftArea className="lc-workspace-left-area" area={skeleton.leftArea} />
<LeftArea className="lc-workspace-left-area lc-left-area" area={skeleton.leftArea} />
<LeftFloatPane area={skeleton.leftFloatArea} />
<LeftFixedPane area={skeleton.leftFixedArea} />
<div className="lc-workspace-workbench-center">
Expand Down
7 changes: 4 additions & 3 deletions packages/workspace/src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ export class EditorWindow implements IEditorWindow {
async init() {
await this.initViewTypes();
await this.execViewTypesInit();
Promise.all(Array.from(this.editorViews.values()).map((d) => d.onSimulatorRendererReady)).then(() => {
this.workspace.emitWindowRendererReady();
});
Promise.all(Array.from(this.editorViews.values()).map((d) => d.onSimulatorRendererReady()))
.then(() => {
this.workspace.emitWindowRendererReady();
});
this.url = await this.resource.url();
this.setDefaultViewName();
this.initReady = true;
Expand Down

0 comments on commit 91704e9

Please sign in to comment.