mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-13 15:35:20 +01:00
Fixes microsoft/monaco-editor#1614: tabSize must be at least 1
This commit is contained in:
@@ -386,7 +386,7 @@ export class TextModelResolvedOptions {
|
||||
defaultEOL: DefaultEndOfLine;
|
||||
trimAutoWhitespace: boolean;
|
||||
}) {
|
||||
this.tabSize = src.tabSize | 0;
|
||||
this.tabSize = Math.max(1, src.tabSize | 0);
|
||||
this.indentSize = src.tabSize | 0;
|
||||
this.insertSpaces = Boolean(src.insertSpaces);
|
||||
this.defaultEOL = src.defaultEOL | 0;
|
||||
|
||||
Reference in New Issue
Block a user