Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
rust: Change cwd of `cargo run`-esque tasks to use package root, not dirname of current file as cwd (#44672)
Piotr Osiewicz8d0fff688f54
diff --git a/crates/languages/src/rust.rs b/crates/languages/src/rust.rsindex 31d74482859..aadf882b8eb 100644--- a/crates/languages/src/rust.rs+++ b/crates/languages/src/rust.rs@@ -882,7 +882,7 @@ impl ContextProvider for RustContextProvider {RUST_BIN_REQUIRED_FEATURES_FLAG_TASK_VARIABLE.template_value(),RUST_BIN_REQUIRED_FEATURES_TASK_VARIABLE.template_value(),],- cwd: Some("$ZED_DIRNAME".to_owned()),+ cwd: Some(RUST_MANIFEST_DIRNAME_TASK_VARIABLE.template_value()),tags: vec!["rust-main".to_owned()],..TaskTemplate::default()},@@ -904,14 +904,14 @@ impl ContextProvider for RustContextProvider {label: "Run".into(),command: "cargo".into(),args: run_task_args,- cwd: Some("$ZED_DIRNAME".to_owned()),+ cwd: Some(RUST_MANIFEST_DIRNAME_TASK_VARIABLE.template_value()),..TaskTemplate::default()},TaskTemplate {label: "Clean".into(),command: "cargo".into(),args: vec!["clean".into()],- cwd: Some("$ZED_DIRNAME".to_owned()),+ cwd: Some(RUST_MANIFEST_DIRNAME_TASK_VARIABLE.template_value()),..TaskTemplate::default()},];