mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
@@ -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()) {
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user