File tree Expand file tree Collapse file tree
src/vs/workbench/services/views/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ class ViewContainerModel extends Disposable implements IViewContainerModel {
347347
348348 private updateContainerInfo ( ) : void {
349349 /* Use default container info if one of the visible view descriptors belongs to the current container by default */
350- const useDefaultContainerInfo = this . visibleViewDescriptors . some ( v => Registry . as < IViewsRegistry > ( ViewExtensions . ViewsRegistry ) . getViewContainer ( v . id ) === this . container ) ;
350+ const useDefaultContainerInfo = this . visibleViewDescriptors . length === 0 || this . visibleViewDescriptors . some ( v => Registry . as < IViewsRegistry > ( ViewExtensions . ViewsRegistry ) . getViewContainer ( v . id ) === this . container ) ;
351351 const title = useDefaultContainerInfo ? this . container . name : this . visibleViewDescriptors [ 0 ] ?. name || '' ;
352352 let titleChanged : boolean = false ;
353353 if ( this . _title !== title ) {
You can’t perform that action at this time.
0 commit comments