Is the diff too large for us to reasonably represent?
(diff: IRawDiff)
| 77 | |
| 78 | /** Is the diff too large for us to reasonably represent? */ |
| 79 | function isDiffTooLarge(diff: IRawDiff) { |
| 80 | for (const hunk of diff.hunks) { |
| 81 | for (const line of hunk.lines) { |
| 82 | if (line.text.length > MaxCharactersPerLine) { |
| 83 | return true |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | return false |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Defining the list of known extensions we can render inside the app |
no outgoing calls
no test coverage detected