Fix performance regression in multibuffer diff syncing (#26137)

This fixes a performance problem introduced in #25906 and caused by
calling `BufferDiff::snapshot` too frequently.

Release Notes:

- Fixed a performance regression related to buffer diffs

Co-authored-by: Conrad <conrad@zed.dev>
ad9c508a72Cole Miller committed on 3/5/2025, 5:25:51 PM· committed by GitHubparentaaa506c
1 file changedLine totals unavailable