File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/vs/workbench/contrib/terminal/common Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 6
6
import { Event } from 'vs/base/common/event' ;
7
7
import { IDisposable } from 'vs/base/common/lifecycle' ;
8
8
import { MarshalledId } from 'vs/base/common/marshallingIds' ;
9
- import { IProcessEnvironment , OperatingSystem } from 'vs/base/common/platform' ;
9
+ import { IProcessEnvironment , isLinux , OperatingSystem } from 'vs/base/common/platform' ;
10
10
import Severity from 'vs/base/common/severity' ;
11
11
import { ThemeIcon } from 'vs/base/common/themables' ;
12
12
import { URI } from 'vs/base/common/uri' ;
@@ -33,7 +33,12 @@ export const TERMINAL_CONFIG_SECTION = 'terminal.integrated';
33
33
34
34
export const DEFAULT_LETTER_SPACING = 0 ;
35
35
export const MINIMUM_LETTER_SPACING = - 5 ;
36
- export const DEFAULT_LINE_HEIGHT = 1 ;
36
+ // HACK: On Linux it's common for fonts to include an underline that is rendered lower than the
37
+ // bottom of the cell which causes it to be cut off due to `overflow:hidden` in the DOM renderer.
38
+ // See:
39
+ // - https://github.com/microsoft/vscode/issues/211933
40
+ // - https://github.com/xtermjs/xterm.js/issues/4067
41
+ export const DEFAULT_LINE_HEIGHT = isLinux ? 1.1 : 1 ;
37
42
38
43
export const MINIMUM_FONT_WEIGHT = 1 ;
39
44
export const MAXIMUM_FONT_WEIGHT = 1000 ;
You can’t perform that action at this time.
0 commit comments