(line: string, maxLength: number = MAX_LINE_LENGTH)
| 82 | * @returns The truncated line, or the original line if it's shorter than maxLength |
| 83 | */ |
| 84 | export function truncateLine(line: string, maxLength: number = MAX_LINE_LENGTH): string { |
| 85 | return line.length > maxLength ? line.substring(0, maxLength) + " [truncated...]" : line |
| 86 | } |
| 87 | /** |
| 88 | * Returns the ordered list of absolute candidate paths where ripgrep may |
| 89 | * live under the given VS Code appRoot. Used by both getBinPath (first-match |
no outgoing calls
no test coverage detected