Delete theme files more selectively when regenerating them
Avoid deleting files that will be rewritten later, so that Zed won't observe states where themes are missing if two zed processes are running at once.
This commit is contained in:
parent
89e91939e4
commit
fbacc12672
2 changed files with 5 additions and 2 deletions
|
@ -449,7 +449,7 @@ async fn watch_themes(
|
|||
mut cx: AsyncAppContext,
|
||||
) -> Option<()> {
|
||||
let mut events = fs
|
||||
.watch("styles/src".as_ref(), Duration::from_millis(250))
|
||||
.watch("styles/src".as_ref(), Duration::from_millis(100))
|
||||
.await;
|
||||
while let Some(_) = events.next().await {
|
||||
let output = Command::new("npm")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue