MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / makeIndentExtensions

Function makeIndentExtensions

src/lib/editorManager.js:424–431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 || {};

Callers 1

buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected