lsp: Fix buffer snapshots sometimes going missing (#25548)

A call to register_buffer_with_language_servers could nuke existing
snapshots, even when the buffer was already registered with a server.

Essentially, had we had the else branch in place, this would have been
detected.

Closes #ISSUE

Release Notes:

- Fixed Rust analyzer renames sometimes failing. (Preview only)
86283f4e3dPiotr Osiewicz committed on 2/25/2025, 9:39:09 AM· committed by GitHubparent8e1003e
1 file changedLine totals unavailable