voideditor / void

https://voideditor.com
MIT License
5.03k stars 225 forks source link

Fix diff line number edge cases #7

Open andrewpareles opened 2 days ago

andrewpareles commented 2 days ago

We define a "diff" as a single green/red pair that denotes a change.

We create diffs by using the function getDiffedLines, which takes in an old string and the new string and outputs an array of diffs (like the range of the diff, or the original text of the diff).

image

There are two bugs inside of ApprovalCodeLensProvider.ts: