Skip to content

Commit cb0ff84

Browse files
authored
Merge pull request microsoft#200658 from microsoft/tyriar/140873
Fix terminal resize commands when in side bar
2 parents 04c01c0 + 2790466 commit cb0ff84

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/vs/workbench/contrib/terminal/browser/terminalGroup.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ class SplitPaneContainer extends Disposable {
6767
if ((isHorizontal && this.orientation !== Orientation.HORIZONTAL) ||
6868
(!isHorizontal && this.orientation !== Orientation.VERTICAL)) {
6969
// Resize the entire pane as a whole
70-
if ((this.orientation === Orientation.HORIZONTAL && direction === Direction.Down) ||
71-
(this.orientation === Orientation.VERTICAL && direction === Direction.Right)) {
70+
if (
71+
(this.orientation === Orientation.HORIZONTAL && direction === Direction.Down) ||
72+
(part === Parts.SIDEBAR_PART && direction === Direction.Left) ||
73+
(part === Parts.AUXILIARYBAR_PART && direction === Direction.Right)
74+
) {
7275
amount *= -1;
7376
}
7477

0 commit comments

Comments
 (0)