svg_preview: Ensure preview properly updates in follow mode (#38081)

This fixes an issue where we would not update neither the path nor the
editor that was listened to during follow mode, which in turn would
cause the preview to become stale.

Fix here is to update the subscription whenever the active item changes
and also update the associated path accordingly.


Release Notes:

- Fixed an issue where the SVG preview would not update when following
the active editor.
This commit is contained in:
Finn Evers
2025-09-12 18:08:21 +00:00
committed by GitHub
parent 2b3ca360c3
commit 2143c59fba
3 changed files with 56 additions and 118 deletions
Generated
+1 -2
View File
@@ -15922,11 +15922,10 @@ dependencies = [
"editor",
"file_icons",
"gpui",
"project",
"multi_buffer",
"ui",
"workspace",
"workspace-hack",
"worktree",
]
[[package]]