ssh-remoting: Fix go to definition out of worktree (#18094)

Release Notes:

- ssh-remoting: Fixed go to definition outside of worktree

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Conrad Irwin
2024-09-19 14:04:46 -06:00
committed by GitHub
co-authored by Mikayla
parent 00b1c81c9f
commit fbbf0393cb
7 changed files with 251 additions and 158 deletions
+6
View File
@@ -27,6 +27,8 @@ pub trait ProtoClient: Send + Sync {
fn send_response(&self, envelope: Envelope, message_type: &'static str) -> anyhow::Result<()>;
fn message_handler_set(&self) -> &parking_lot::Mutex<ProtoMessageHandlerSet>;
fn goes_via_collab(&self) -> bool;
}
#[derive(Default)]
@@ -139,6 +141,10 @@ impl AnyProtoClient {
Self(client)
}
pub fn goes_via_collab(&self) -> bool {
self.0.goes_via_collab()
}
pub fn request<T: RequestMessage>(
&self,
request: T,