add comment

pull/33434/head
silverwind 1 week ago
parent b76d014297
commit f9ac1e0642
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
  1. 1
      web_src/js/features/codeeditor.ts

@ -240,6 +240,7 @@ function getEditorConfigOptions(ec: EditorConfig | null): MonacoOpts {
const opts: MonacoOpts = {};
opts.detectIndentation = !('indent_style' in ec) || !('indent_size' in ec);
// we use indentSize='tabSize' so these numbers always match
opts.tabSize = Number(ec.indent_size) || Number(ec.tab_width) || 4;
if ('max_line_length' in ec) {

Loading…
Cancel
Save