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.

Use regex to properly select Go test runnable (#13750)

Connor Finnell38fb841d1f4f
diff --git a/crates/languages/src/go.rs b/crates/languages/src/go.rs
index 48641c5729e..47226efefa6 100644
--- a/crates/languages/src/go.rs
+++ b/crates/languages/src/go.rs
@@ -518,7 +518,7 @@ impl ContextProvider for GoContextProvider {
"test".into(),
GO_PACKAGE_TASK_VARIABLE.template_value(),
"-run".into(),
- VariableName::Symbol.template_value(),
+ format!("^{}$", VariableName::Symbol.template_value(),),
],
tags: vec!["go-test".to_owned()],
..TaskTemplate::default()