Files
oak-gpui/crates
0xshadow 18c6d9d394 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
2025-09-09 13:36:35 -06:00
..
2025-09-03 22:10:14 +00:00
2025-08-13 13:25:52 -06:00
2025-09-08 21:53:17 -06:00
2025-09-08 21:53:17 -06:00
2025-09-08 21:53:17 -06:00
2025-09-08 21:53:17 -06:00
2025-09-03 22:10:14 +00:00
2025-09-06 00:27:14 +02:00
2025-09-09 13:29:49 -06:00
2025-08-19 20:33:44 +00:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-09-08 21:53:17 -06:00
2025-09-08 14:19:41 -04:00
2025-09-08 21:53:17 -06:00