From 4f752a4144f5426a71c8220a524b32d814aacabc Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Sat, 10 Jul 2021 08:48:49 +0200 Subject: [PATCH] Emit event when performing a rename in `InMemoryFs` --- zed/src/worktree.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zed/src/worktree.rs b/zed/src/worktree.rs index 5eb19873cf..a28ad04c48 100644 --- a/zed/src/worktree.rs +++ b/zed/src/worktree.rs @@ -190,7 +190,7 @@ impl Fs for ProductionFs { } } -#[derive(Clone)] +#[derive(Clone, Debug)] struct InMemoryEntry { inode: u64, mtime: SystemTime, @@ -312,6 +312,9 @@ impl InMemoryFs { state.entries.insert(new_path, entry); } + state.emit_event(source).await; + state.emit_event(target).await; + Ok(()) } }