Fix cursor going to the end of file when LSP formatter uses CRLF line endings (#59151)

I got super annoyed when using Zed with F#, so I fixed it. This also
fixes other LSPs on Windows

Fix is super simple, the test fails if the fix is commented out

Closes #48367 (and probably others)


Release Notes:

- fix cursor jumping to the end of file when LSP formats the file using
CLRF line endings
d87dfaa4b3qrzychu committed on 7/23/2026, 7:54:28 AM· committed by GitHubparentb64e5dc
2 files changedLine totals unavailable