Skip to content

Commit

Permalink
Fix #45053
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Mar 16, 2018
1 parent c55926a commit 9160e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/browser/parts/views/viewsViewlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,8 @@ export class ViewsViewlet extends PanelViewlet implements IViewsViewlet {
}

const collapsed = !view.isExpanded();
const order = this.viewsViewletPanels.indexOf(view);
const panelSize = this.getPanelSize(view);
// Do not save order because views can come late.
if (currentState) {
currentState.collapsed = collapsed;
currentState.size = collapsed ? currentState.size : panelSize;
Expand All @@ -613,7 +613,7 @@ export class ViewsViewlet extends PanelViewlet implements IViewsViewlet {
collapsed,
size: this.didLayout ? panelSize : void 0,
isHidden: false,
order,
order: void 0
});
}
}
Expand Down

0 comments on commit 9160e85

Please sign in to comment.