Skip to content

Commit f9ac1e0

Browse files
committed
add comment
1 parent b76d014 commit f9ac1e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web_src/js/features/codeeditor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +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+
// we use indentSize='tabSize' so these numbers always match
243244
opts.tabSize = Number(ec.indent_size) || Number(ec.tab_width) || 4;
244245

245246
if ('max_line_length' in ec) {

0 commit comments

Comments
 (0)