* Resolve the indentation width used for guide spacing.
(state: EditorState)
| 54 | * Resolve the indentation width used for guide spacing. |
| 55 | */ |
| 56 | function 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 |
no test coverage detected