Skip to content

Commit

Permalink
set minimum value for lineHeight and fontSize and align it with VS Code
Browse files Browse the repository at this point in the history
Signed-off-by: Uni Sayo <unibtc@gmail.com>
  • Loading branch information
uniibu authored and akosyakov committed Apr 5, 2019
1 parent b1df8fc commit 9fdc224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/terminal/src/browser/terminal-preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const TerminalConfigSchema: PreferenceSchema = {
'terminal.integrated.fontSize': {
type: 'number',
description: 'Controls the font size in pixels of the terminal.',
minimum: 6,
default: EDITOR_FONT_DEFAULTS.fontSize
},
'terminal.integrated.fontWeight': {
Expand All @@ -61,6 +62,7 @@ export const TerminalConfigSchema: PreferenceSchema = {
'terminal.integrated.lineHeight': {
description: 'Controls the line height of the terminal, this number is multiplied by the terminal font size to get the actual line-height in pixels.',
type: 'number',
minimum: 1,
default: 1
},
}
Expand Down

0 comments on commit 9fdc224

Please sign in to comment.