File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/contrib/terminal/browser/xterm Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -195,12 +195,13 @@ export class DecorationAddon extends Disposable implements ITerminalAddon {
195
195
}
196
196
const fontSize = this . _configurationService . inspect ( TerminalSettingId . FontSize ) . value ;
197
197
const defaultFontSize = this . _configurationService . inspect ( TerminalSettingId . FontSize ) . defaultValue ;
198
- if ( typeof fontSize === 'number' && typeof defaultFontSize === 'number' ) {
198
+ const lineHeight = this . _configurationService . inspect ( TerminalSettingId . LineHeight ) . value ;
199
+ if ( typeof fontSize === 'number' && typeof defaultFontSize === 'number' && typeof lineHeight === 'number' ) {
199
200
const scalar = ( fontSize / defaultFontSize ) <= 1 ? ( fontSize / defaultFontSize ) : 1 ;
200
201
201
202
// must be inlined to override the inlined styles from xterm
202
203
element . style . width = `${ scalar * DecorationStyles . DefaultDimension } px` ;
203
- element . style . height = `${ scalar * DecorationStyles . DefaultDimension } px` ;
204
+ element . style . height = `${ scalar * DecorationStyles . DefaultDimension * lineHeight } px` ;
204
205
element . style . fontSize = `${ scalar * DecorationStyles . DefaultDimension } px` ;
205
206
206
207
// the first split terminal in the panel has more room
You can’t perform that action at this time.
0 commit comments