提交 71c3f491 编写于 作者: K Kai Maetzel 提交者: GitHub

Merge pull request #11718 from Microsoft/tyriar/11715_zero_fontsize

Don't respect editor.fontSize: 0
......@@ -478,6 +478,9 @@ export abstract class CommonEditorConfiguration extends Disposable implements ed
let fontSize = toFloat(opts.fontSize, DefaultConfig.editor.fontSize);
fontSize = Math.max(0, fontSize);
fontSize = Math.min(100, fontSize);
if (fontSize === 0) {
fontSize = DefaultConfig.editor.fontSize;
}
let lineHeight = toInteger(opts.lineHeight, 0, 150);
if (lineHeight === 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册