diff --git a/crates/lsp/src/lsp.rs b/crates/lsp/src/lsp.rs index 179a87e43a..c563c23311 100644 --- a/crates/lsp/src/lsp.rs +++ b/crates/lsp/src/lsp.rs @@ -1,6 +1,6 @@ use anyhow::{anyhow, Context, Result}; use futures::{io::BufWriter, AsyncRead, AsyncWrite}; -use gpui::{executor, AsyncAppContext, Task}; +use gpui::{executor, Task}; use parking_lot::{Mutex, RwLock}; use postage::{barrier, oneshot, prelude::Stream, sink::Sink, watch}; use serde::{Deserialize, Serialize}; @@ -485,7 +485,10 @@ impl Drop for Subscription { pub struct FakeLanguageServer { handlers: Arc< Mutex< - HashMap<&'static str, Box Vec>>, + HashMap< + &'static str, + Box Vec>, + >, >, >, outgoing_tx: futures::channel::mpsc::UnboundedSender>, @@ -625,7 +628,7 @@ impl FakeLanguageServer { ) -> futures::channel::mpsc::UnboundedReceiver<()> where T: 'static + request::Request, - F: 'static + Send + FnMut(T::Params, AsyncAppContext) -> T::Result, + F: 'static + Send + FnMut(T::Params, gpui::AsyncAppContext) -> T::Result, { let (responded_tx, responded_rx) = futures::channel::mpsc::unbounded(); self.handlers.lock().insert(