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.

go: Fix tasks when running tests/benchs in packages (#17998)

Thorsten Ballaae26ee33de9
diff --git a/crates/languages/src/go.rs b/crates/languages/src/go.rs
index 2ddf7796817..a103c4783cf 100644
--- a/crates/languages/src/go.rs
+++ b/crates/languages/src/go.rs
@@ -519,7 +519,6 @@ impl ContextProvider for GoContextProvider {
command: "go".into(),
args: vec![
"test".into(),
- GO_PACKAGE_TASK_VARIABLE.template_value(),
"-run".into(),
format!("^{}\\$", VariableName::Symbol.template_value(),),
],
@@ -530,7 +529,7 @@ impl ContextProvider for GoContextProvider {
TaskTemplate {
label: format!("go test {}", GO_PACKAGE_TASK_VARIABLE.template_value()),
command: "go".into(),
- args: vec!["test".into(), GO_PACKAGE_TASK_VARIABLE.template_value()],
+ args: vec!["test".into()],
cwd: package_cwd.clone(),
..TaskTemplate::default()
},
@@ -572,7 +571,6 @@ impl ContextProvider for GoContextProvider {
command: "go".into(),
args: vec![
"test".into(),
- GO_PACKAGE_TASK_VARIABLE.template_value(),
"-benchmem".into(),
"-run=^$".into(),
"-bench".into(),