Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Revert "task: Wrap programs in ""s (#31537)" (#31674)

Kirill Bulatovb4af61edfe43
diff --git a/crates/languages/src/python.rs b/crates/languages/src/python.rs
index ea0e348c101..fcd0ddcab19 100644
--- a/crates/languages/src/python.rs
+++ b/crates/languages/src/python.rs
@@ -382,7 +382,10 @@ impl ContextProvider for PythonContextProvider {
toolchains
.active_toolchain(worktree_id, Arc::from("".as_ref()), "Python".into(), cx)
.await
- .map_or_else(|| "python3".to_owned(), |toolchain| toolchain.path.into())
+ .map_or_else(
+ || "python3".to_owned(),
+ |toolchain| format!("\"{}\"", toolchain.path),
+ )
} else {
String::from("python3")
};
diff --git a/crates/task/src/lib.rs b/crates/task/src/lib.rs
index 30605c7d9b6..a6bf6139090 100644
--- a/crates/task/src/lib.rs
+++ b/crates/task/src/lib.rs
@@ -384,7 +384,6 @@ impl ShellBuilder {
/// Returns the program and arguments to run this task in a shell.
pub fn build(mut self, task_command: String, task_args: &Vec<String>) -> (String, Vec<String>) {
- let task_command = format!("\"{task_command}\"");
let combined_command = task_args
.into_iter()
.fold(task_command, |mut command, arg| {