Fix SVG preview not refreshing on external file changes (#37316)
Closes #37208 ## Release Notes: - Fixed: SVG preview now refreshes automatically when files are modified by external programs ## Summary Previously, SVG preview would only refresh when files were saved within the Zed editor, but not when modified by external programs (like scripts, other editors, etc.) ## What Changed The SVG preview now subscribes to file system events through the worktree system. When an external program modifies an SVG file, the worktree detects the change and notifies the preview. The preview then clears its cache and refreshes to show the updated content. ## Before the fix https://github.com/user-attachments/assets/e7f9a2b2-50f9-4b43-95e9-93a0720749f5 ## After the fix https://github.com/user-attachments/assets/b23511e3-8e59-45a1-b29b-d5105d32bd2c AI Usage: Used Cursor for code generation
This commit is contained in:
Generated
+2
@@ -15870,9 +15870,11 @@ dependencies = [
|
||||
"editor",
|
||||
"file_icons",
|
||||
"gpui",
|
||||
"project",
|
||||
"ui",
|
||||
"workspace",
|
||||
"workspace-hack",
|
||||
"worktree",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
Reference in New Issue
Block a user