Properly store editor restoration data (#28296)

We cannot compare versions and anchors between different `Buffer`s with
different `BufferId`s.

Release Notes:

- Fixed Zed panicking on editor reopen

Co-authored-by: Conrad Irwin <conrad@zed.dev>
1264e7a200Kirill Bulatov committed on 4/8/2025, 1:25:43 AM· committed by GitHubparentbfe08e4
3 files changedLine totals unavailable