(line: string | undefined)
| 15 | |
| 16 | /** Measure one rendered code line after tab expansion and newline trimming. */ |
| 17 | export function measureRenderedCodeLineWidth(line: string | undefined) { |
| 18 | return measureTextWidth(expandDiffTabs((line ?? "").replace(/\n$/, ""))); |
| 19 | } |
| 20 | |
| 21 | /** Track the widest rendered code line for one file. */ |
| 22 | export function maxFileCodeLineWidth(file: DiffFile) { |
no test coverage detected