File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1171,13 +1171,13 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
1171
1171
// using cached dimensions of a split terminal).
1172
1172
this . _resize ( ) ;
1173
1173
1174
- // Trigger a manual scroll event which will sync the viewport and scroll bar. This is
1174
+ // Trigger a forced refresh of the viewport to sync the viewport and scroll bar. This is
1175
1175
// necessary if the number of rows in the terminal has decreased while it was in the
1176
1176
// background since scrollTop changes take no effect but the terminal's position does
1177
1177
// change since the number of visible rows decreases.
1178
1178
// This can likely be removed after https://github.com/xtermjs/xterm.js/issues/291 is
1179
1179
// fixed upstream.
1180
- this . _xtermCore . _onScroll . fire ( this . _xterm . buffer . active . viewportY ) ;
1180
+ this . _xtermCore . viewport . _innerRefresh ( ) ;
1181
1181
}
1182
1182
}
1183
1183
Original file line number Diff line number Diff line change 3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
+ /* eslint-disable @typescript-eslint/naming-convention */
7
+
6
8
import { IBufferCell } from 'xterm' ;
7
9
8
10
export type XTermAttributes = Omit < IBufferCell , 'getWidth' | 'getChars' | 'getCode' > & { clone ?( ) : XTermAttributes } ;
9
11
10
12
export interface XTermCore {
11
- _onScroll : IEventEmitter < number > ;
13
+ viewport : {
14
+ _innerRefresh ( ) : void ;
15
+ } ;
12
16
_onKey : IEventEmitter < { key : string } > ;
13
17
14
18
_charSizeService : {
You can’t perform that action at this time.
0 commit comments