Add menu command to join worktree using URL on clipboard

Introduce rpc::Client struct that wraps zed_rpc::Peer
This commit is contained in:
Max Brunsfeld 2021-06-17 17:40:38 -07:00
parent 3a78f053f6
commit 7a88e44264
8 changed files with 294 additions and 167 deletions

View file

@ -1,12 +1,10 @@
use std::sync::Arc;
pub mod assets;
pub mod editor;
pub mod file_finder;
pub mod language;
pub mod menus;
mod operation_queue;
mod rpc;
pub mod rpc;
pub mod settings;
mod sum_tree;
#[cfg(test)]
@ -20,7 +18,7 @@ mod worktree;
pub struct AppState {
pub settings: postage::watch::Receiver<settings::Settings>,
pub language_registry: std::sync::Arc<language::LanguageRegistry>,
pub rpc: Arc<zed_rpc::Peer>,
pub rpc: rpc::Client,
}
pub fn init(cx: &mut gpui::MutableAppContext) {