Emit a diff event when worktree's snapshot is updated

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-06-21 17:07:56 -07:00
co-authored by Nathan Sobo
parent 8ae5c0d7d6
commit cabf6b1f58
4 changed files with 186 additions and 71 deletions
+2 -2
View File
@@ -2131,9 +2131,9 @@ impl<T: Entity> ModelHandle<T> {
let cx = cx.weak_self.as_ref().unwrap().upgrade().unwrap();
let handle = self.downgrade();
let duration = if std::env::var("CI").is_ok() {
Duration::from_secs(2)
Duration::from_secs(5)
} else {
Duration::from_millis(500)
Duration::from_secs(1)
};
async move {