mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Emit event when performing a rename in InMemoryFs
This commit is contained in:
parent
4aab70d7fb
commit
4f752a4144
1 changed files with 4 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue