voideditor / void

https://voideditor.com
MIT License
5.05k stars 227 forks source link

Create a native diff component #12

Open andrewpareles opened 2 days ago

andrewpareles commented 2 days ago

Right now we're only showing the insertion part of each diff (green). We'd like to also show the deletion part (red).

Diffs currently work by highlighting all of the new code in green with a text decoration. Instead, we would like to use code from VS Code's native diffEditor to show the diffs ("inline" mode). Alternatively, a hack could be to use "zone widgets" containing the original text red background to indicate deletions.