Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ssh: Fix incorrect handling of ssh paths that exist locally (#33743)
Peter Trippf785853239ab
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rsindex 89d9c2edf12..e04e9c38c15 100644--- a/crates/zed/src/main.rs+++ b/crates/zed/src/main.rs@@ -727,11 +727,10 @@ fn handle_open_request(request: OpenRequest, app_state: Arc<AppState>, cx: &mutif let Some(connection_options) = request.ssh_connection {cx.spawn(async move |mut cx| {- let paths_with_position =- derive_paths_with_position(app_state.fs.as_ref(), request.open_paths).await;+ let paths: Vec<PathBuf> = request.open_paths.into_iter().map(PathBuf::from).collect();open_ssh_project(connection_options,- paths_with_position.into_iter().map(|p| p.path).collect(),+ paths,app_state,workspace::OpenOptions::default(),&mut cx,