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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue