(lines: ResultLine[])
| 628 | } |
| 629 | |
| 630 | export function resultLinesToText(lines: ResultLine[]): string { |
| 631 | return lines.map(line => line.text).join('\n'); |
| 632 | } |
| 633 | |
| 634 | /** |
| 635 | * Try and read a file as a utf-8 text file, returning its contents if present, or undefined if not. |