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:
1 parent
4bb692d2e0
commit
f0080a490a
7 files changed
+251
-158
No files matched your search
@@ -247,7 +247,8 @@ impl SshSession {
|
||||
let line_ix = start_ix + ix;
|
||||
let content = &stderr_buffer[start_ix..line_ix];
|
||||
start_ix = line_ix + 1;
|
||||
if let Ok(record) = serde_json::from_slice::<LogRecord>(content) {
|
||||
if let Ok(mut record) = serde_json::from_slice::<LogRecord>(content) {
|
||||
record.message = format!("(remote) {}", record.message);
|
||||
record.log(log::logger())
|
||||
} else {
|
||||
eprintln!("(remote) {}", String::from_utf8_lossy(content));
|
||||
@@ -469,6 +470,10 @@ impl ProtoClient for SshSession {
|
||||
fn message_handler_set(&self) -> &Mutex<ProtoMessageHandlerSet> {
|
||||
&self.state
|
||||
}
|
||||
|
||||
fn goes_via_collab(&self) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
impl SshClientState {
|
||||
|
||||
Reference in new issue
Block a user