提交 3e5bdaf8 编写于 作者: A Alex Dima

Fixes #52002: Ensure tabSize is >= 1

上级 777c8e57
...@@ -274,6 +274,9 @@ export class ModelServiceImpl implements IModelService { ...@@ -274,6 +274,9 @@ export class ModelServiceImpl implements IModelService {
if (!isNaN(parsedTabSize)) { if (!isNaN(parsedTabSize)) {
tabSize = parsedTabSize; tabSize = parsedTabSize;
} }
if (tabSize < 1) {
tabSize = 1;
}
} }
let insertSpaces = EDITOR_MODEL_DEFAULTS.insertSpaces; let insertSpaces = EDITOR_MODEL_DEFAULTS.insertSpaces;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册