Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
go: Fix regression by restoring regex to match tests (#17645)
Thorsten Ballbf64c0899f07
diff --git a/crates/languages/src/go.rs b/crates/languages/src/go.rsindex c22a4e3eda9..a528f4f70cd 100644--- a/crates/languages/src/go.rs+++ b/crates/languages/src/go.rs@@ -518,7 +518,13 @@ impl ContextProvider for GoContextProvider {GO_PACKAGE_TASK_VARIABLE.template_value(),VariableName::Symbol.template_value(),),- command: format!("go test -run {}", VariableName::Symbol.template_value(),),+ command: "go".into(),+ args: vec![+ "test".into(),+ GO_PACKAGE_TASK_VARIABLE.template_value(),+ "-run".into(),+ format!("^{}\\$", VariableName::Symbol.template_value(),),+ ],tags: vec!["go-test".to_owned()],cwd: package_cwd.clone(),..TaskTemplate::default()