Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

project: Observe SshRemoteClient to get notified about state changes (#18918)

Thorsten Ballb703514d0e50
diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs
index 8c2b4bd2a06..de8601044aa 100644
--- a/crates/project/src/project.rs
+++ b/crates/project/src/project.rs
@@ -732,6 +732,7 @@ impl Project {
}
})
.detach();
+ cx.observe(&ssh, |_, _, cx| cx.notify()).detach();
let this = Self {
buffer_ordered_messages_tx: tx,