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:
parent
00b1c81c9f
commit
fbbf0393cb
7 changed files with 251 additions and 158 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue