Refactor change sets to store index text in only one place (#24245)

This is a pure refactor that somewhat reduces the amount of code needed
when handling diff base changes. There's also a small performance gain
from reparsing the staged text and computing a new diff in parallel when
we weren't previously.

Release Notes:

- N/A

Co-authored-by: Max <max@zed.dev>
7c1132ed88Cole Miller committed on 2/5/2025, 1:11:01 AM· committed by GitHubparentf366b97
1 file changedLine totals unavailable