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

Function getIndentUnitColumns

src/cm/indentGuides.ts:56–60  ·  view source on GitHub ↗

* Resolve the indentation width used for guide spacing.

(state: EditorState)

Source from the content-addressed store, hash-verified

54 * Resolve the indentation width used for guide spacing.
55 */
56function getIndentUnitColumns(state: EditorState): number {
57 const width = getIndentUnit(state);
58 if (Number.isFinite(width) && width > 0) return width;
59 return getTabSize(state);
60}
61
62/**
63 * Calculate the visual indentation of a line

Callers 3

buildDecorationsFunction · 0.85
constructorMethod · 0.85
updateMethod · 0.85

Calls 1

getTabSizeFunction · 0.85

Tested by

no test coverage detected