()
| 422 | } |
| 423 | |
| 424 | function makeIndentExtensions() { |
| 425 | const { softTab = true, tabSize = 2 } = appSettings?.value || {}; |
| 426 | const unit = softTab ? " ".repeat(Math.max(1, Number(tabSize) || 2)) : "\t"; |
| 427 | return { |
| 428 | indentExt: indentUnit.of(unit), |
| 429 | tabSizeExt: EditorState.tabSize.of(Math.max(1, Number(tabSize) || 2)), |
| 430 | }; |
| 431 | } |
| 432 | |
| 433 | function getBaseExtensionOptions() { |
| 434 | const values = appSettings?.value || {}; |