Skip to content

Commit

Permalink
Attach Open Editors after Navigator (#10930)
Browse files Browse the repository at this point in the history
Fixes a bug where the `initiallyCollapsed` field of OpenEditors was ignored.
  • Loading branch information
colin-grant-work authored Mar 28, 2022
1 parent b1bd7bd commit a8b8bbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/browser/view-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ export class ViewContainerPart extends BaseWidget {
set collapsed(collapsed: boolean) {
// Cannot collapse/expand if the orientation of the container is `horizontal`.
const orientation = ViewContainer.getOrientation(this.node);
if (this._collapsed === collapsed || orientation === 'horizontal' && collapsed) {
if (this._collapsed === collapsed || (orientation === 'horizontal' && collapsed)) {
return;
}
this._collapsed = collapsed;
Expand Down
2 changes: 1 addition & 1 deletion packages/navigator/src/browser/navigator-widget-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export class NavigatorWidgetFactory implements WidgetFactory {
viewContainer.setTitleOptions(EXPLORER_VIEW_CONTAINER_TITLE_OPTIONS);
const openEditorsWidget = await this.widgetManager.getOrCreateWidget(OpenEditorsWidget.ID);
const navigatorWidget = await this.widgetManager.getOrCreateWidget(FILE_NAVIGATOR_ID);
viewContainer.addWidget(openEditorsWidget, this.openEditorsWidgetOptions);
viewContainer.addWidget(navigatorWidget, this.fileNavigatorWidgetOptions);
viewContainer.addWidget(openEditorsWidget, this.openEditorsWidgetOptions);
return viewContainer;
}
}

0 comments on commit a8b8bbe

Please sign in to comment.