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

Function getTabSize

src/cm/indentGuides.ts:48–51  ·  view source on GitHub ↗

* Get the tab size from editor state

(state: EditorState)

Source from the content-addressed store, hash-verified

46 * Get the tab size from editor state
47 */
48function getTabSize(state: EditorState): number {
49 const tabSize = state.facet(EditorState.tabSize);
50 return Number.isFinite(tabSize) && tabSize > 0 ? tabSize : 4;
51}
52
53/**
54 * Resolve the indentation width used for guide spacing.

Callers 4

getIndentUnitColumnsFunction · 0.85
buildDecorationsFunction · 0.85
constructorMethod · 0.85
updateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected