(text: string)
| 10 | |
| 11 | /** Expand tabs the same way the diff renderer does before measuring visible columns. */ |
| 12 | export function expandDiffTabs(text: string) { |
| 13 | return text.replaceAll("\t", " ".repeat(DIFF_CODE_TAB_WIDTH)); |
| 14 | } |
| 15 | |
| 16 | /** Measure one rendered code line after tab expansion and newline trimming. */ |
| 17 | export function measureRenderedCodeLineWidth(line: string | undefined) { |
no outgoing calls
no test coverage detected