editor: Fix `refresh_linked_ranges` panics due to old snapshot use (#41657)

Fixes ZED-29Z

Release Notes:

- Fixed panic in `refresh_linked_ranges`
4e6a562efeLukas Wirth committed on 10/31/2025, 4:39:55 PM· committed by GitHubparentc1dea84
2 files changedLine totals unavailable