@@ -13,6 +13,7 @@ import { ITerminalInstance, Direction, ITerminalGroup, ITerminalService, ITermin
13
13
import { ViewContainerLocation , IViewDescriptorService } from 'vs/workbench/common/views' ;
14
14
import { IShellLaunchConfig , ITerminalTabLayoutInfoById } from 'vs/platform/terminal/common/terminal' ;
15
15
import { TerminalStatus } from 'vs/workbench/contrib/terminal/browser/terminalStatusList' ;
16
+ import { getPartByLocation } from 'vs/workbench/browser/parts/views/viewsService' ;
16
17
17
18
const SPLIT_PANE_MIN_SIZE = 120 ;
18
19
@@ -49,7 +50,7 @@ class SplitPaneContainer extends Disposable {
49
50
this . _addChild ( instance , index ) ;
50
51
}
51
52
52
- resizePane ( index : number , direction : Direction , amount : number ) : void {
53
+ resizePane ( index : number , direction : Direction , amount : number , part : Parts ) : void {
53
54
const isHorizontal = ( direction === Direction . Left ) || ( direction === Direction . Right ) ;
54
55
55
56
if ( ( isHorizontal && this . orientation !== Orientation . HORIZONTAL ) ||
@@ -59,7 +60,8 @@ class SplitPaneContainer extends Disposable {
59
60
( this . orientation === Orientation . VERTICAL && direction === Direction . Right ) ) {
60
61
amount *= - 1 ;
61
62
}
62
- this . _layoutService . resizePart ( Parts . PANEL_PART , amount , amount ) ;
63
+
64
+ this . _layoutService . resizePart ( part , amount , amount ) ;
63
65
return ;
64
66
}
65
67
@@ -559,7 +561,7 @@ export class TerminalGroup extends Disposable implements ITerminalGroup {
559
561
// TODO: Support letter spacing and line height
560
562
const amount = isHorizontal ? font . charWidth : font . charHeight ;
561
563
if ( amount ) {
562
- this . _splitPaneContainer . resizePane ( this . _activeInstanceIndex , direction , amount ) ;
564
+ this . _splitPaneContainer . resizePane ( this . _activeInstanceIndex , direction , amount , getPartByLocation ( this . _terminalLocation ) ) ;
563
565
}
564
566
}
565
567
0 commit comments