Support zed://ssh (#19970)
Closes: #15070 Release Notes: - Added support for `zed://ssh/<connnection>/<path>`
This commit is contained in:
parent
ce5222f1df
commit
4f9217bca0
2 changed files with 4 additions and 1 deletions
|
@ -47,6 +47,9 @@ impl OpenRequest {
|
|||
this.parse_file_path(file)
|
||||
} else if let Some(file) = url.strip_prefix("zed://file") {
|
||||
this.parse_file_path(file)
|
||||
} else if let Some(file) = url.strip_prefix("zed://ssh") {
|
||||
let ssh_url = "ssh:/".to_string() + file;
|
||||
this.parse_ssh_file_path(&ssh_url, cx)?
|
||||
} else if url.starts_with("ssh://") {
|
||||
this.parse_ssh_file_path(&url, cx)?
|
||||
} else if let Some(request_path) = parse_zed_link(&url, cx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue