Skip to content

Commit 4327409

Browse files
committed
check if no visible views when determining title
1 parent 3ba5221 commit 4327409

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/services/views/browser/viewDescriptorService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)