Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Wrap JS/TS runnables in quotes (#12932)
claytonrcarter5e9f9b4eddd9
diff --git a/crates/languages/src/typescript.rs b/crates/languages/src/typescript.rsindex e59bd516380..64b28e6cd3d 100644--- a/crates/languages/src/typescript.rs+++ b/crates/languages/src/typescript.rs@@ -34,7 +34,8 @@ pub(super) fn typescript_task_context() -> ContextProviderWithTasks {label: "jest test $ZED_SYMBOL".to_owned(),command: "npx jest".to_owned(),args: vec![- VariableName::Symbol.template_value(),+ "--testNamePattern".into(),+ format!("\"{}\"", VariableName::Symbol.template_value()),VariableName::File.template_value(),],tags: vec!["ts-test".into(), "js-test".into(), "tsx-test".into()],@@ -43,7 +44,10 @@ pub(super) fn typescript_task_context() -> ContextProviderWithTasks {TaskTemplate {label: "execute selection $ZED_SELECTED_TEXT".to_owned(),command: "node".to_owned(),- args: vec!["-e".into(), VariableName::SelectedText.template_value()],+ args: vec![+ "-e".into(),+ format!("\"{}\"", VariableName::SelectedText.template_value()),+ ],..TaskTemplate::default()},]))