Respond to proto::OpenBuffer requests

This commit is contained in:
Antonio Scandurra
2021-06-23 16:20:02 +02:00
parent c5e08b6548
commit 02321af08a
9 changed files with 260 additions and 123 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
use crate::{AppState, language::LanguageRegistry, rpc, settings, time::ReplicaId};
use crate::{language::LanguageRegistry, rpc, settings, time::ReplicaId, AppState};
use ctor::ctor;
use gpui::AppContext;
use rand::Rng;
@@ -149,7 +149,7 @@ pub fn build_app_state(cx: &AppContext) -> AppState {
let language_registry = Arc::new(LanguageRegistry::new());
AppState {
settings,
language_registry,
rpc: rpc::Client::new(),
language_registry: language_registry.clone(),
rpc: rpc::Client::new(language_registry),
}
}