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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user