Fix two issues with diff highlights (#24309)

* fix syntax highlighting of deleted text when buffer language changes
* do not highlight entire untracked files as created, except in the
project diff view

Release Notes:

- N/A

Co-authored-by: ConradIrwin <conrad.irwin@gmail.com>
Co-authored-by: cole-miller <m@cole-miller.net>
ca01a8b9cbMax Brunsfeld committed on 2/5/2025, 9:29:39 PM· committed by GitHubparent9114ca9
5 files changedLine totals unavailable