Skip to content

Commit b76d014

Browse files
committed
prefer indent_size
1 parent cc56669 commit b76d014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/codeeditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function getEditorConfigOptions(ec: EditorConfig | null): MonacoOpts {
240240
const opts: MonacoOpts = {};
241241
opts.detectIndentation = !('indent_style' in ec) || !('indent_size' in ec);
242242

243-
opts.tabSize = Number(ec.tab_width) || Number(ec.indent_size) || 4;
243+
opts.tabSize = Number(ec.indent_size) || Number(ec.tab_width) || 4;
244244

245245
if ('max_line_length' in ec) {
246246
opts.rulers = [Number(ec.max_line_length)];

0 commit comments

Comments
 (0)