fix terminal tabs height (#274861)

fixes #274319
This commit is contained in:
Megan Rogge
2025-11-03 15:40:00 -05:00
committed by GitHub
parent 4937fc41dd
commit 13e648a185
2 changed files with 3 additions and 5 deletions

View File

@@ -342,7 +342,8 @@ export class TerminalTabbedView extends Disposable {
} }
layout(width: number, height: number): void { layout(width: number, height: number): void {
this._height = height; const chatItemHeight = this._chatEntry?.element.style.display === 'none' ? 0 : this._chatEntry?.element.clientHeight;
this._height = height - (chatItemHeight ?? 0);
this._width = width; this._width = width;
this._splitView.layout(width); this._splitView.layout(width);
if (this._shouldShowTabs()) { if (this._shouldShowTabs()) {

View File

@@ -106,10 +106,7 @@ export class TerminalViewPane extends ViewPane {
if (!this._terminalTabbedView) { if (!this._terminalTabbedView) {
this._createTabsView(); this._createTabsView();
} }
// If we just opened our first terminal, layout this.layoutBody(this._parentDomElement.offsetHeight, this._parentDomElement.offsetWidth);
if (this._terminalGroupService.instances.length === 1) {
this.layoutBody(this._parentDomElement.offsetHeight, this._parentDomElement.offsetWidth);
}
})); }));
this._dropdownMenu = this._register(this._menuService.createMenu(MenuId.TerminalNewDropdownContext, this._contextKeyService)); this._dropdownMenu = this._register(this._menuService.createMenu(MenuId.TerminalNewDropdownContext, this._contextKeyService));
this._singleTabMenu = this._register(this._menuService.createMenu(MenuId.TerminalTabContext, this._contextKeyService)); this._singleTabMenu = this._register(this._menuService.createMenu(MenuId.TerminalTabContext, this._contextKeyService));