Don't merge a view with a titleDescription (fix #166000) (#214010)

This commit is contained in:
John Murray 2024-05-31 16:41:32 +01:00 committed by GitHub
parent 11533e5b1d
commit af1bd0264a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1100,6 +1100,10 @@ export class ViewPaneContainer extends Component implements IViewPaneContainer {
if (!(this.options.mergeViewWithContainerWhenSingleView && this.paneItems.length === 1)) {
return false;
}
if (this.paneItems[0].pane.titleDescription) {
// Don't merge a view with a titleDescription. See #166000
return false;
}
if (!this.areExtensionsReady) {
if (this.visibleViewsCountFromCache === undefined) {
return this.paneItems[0].pane.isExpanded();