Fix a couple of diff hunk issues (#24913)

- Fix hunks losing their expandedness when staged or unstaged
- Disable collapsing hunks in the project diff editor

Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
394bb8f4e6Cole Miller committed on 2/15/2025, 6:18:32 PM· committed by GitHubparent56f13dd
3 files changedLine totals unavailable