Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
debugger: Fix a couple of issues with vitest (#32543)
Cole Miller06f7d791b777
diff --git a/crates/languages/src/typescript.rs b/crates/languages/src/typescript.rsindex 2015dd7ca85..8a9c5f69610 100644--- a/crates/languages/src/typescript.rs+++ b/crates/languages/src/typescript.rs@@ -175,7 +175,10 @@ impl PackageJsonData {"vitest".to_owned(),"run".to_owned(),"--testNamePattern".to_owned(),- format!("\"{}\"", "vitest".to_owned()),+ format!(+ "\"{}\"",+ TYPESCRIPT_VITEST_TEST_NAME_VARIABLE.template_value()+ ),VariableName::RelativeFile.template_value(),],tags: vec![diff --git a/crates/project/src/debugger/locators/node.rs b/crates/project/src/debugger/locators/node.rsindex 2b39a9d3228..2be9fe9bdc8 100644--- a/crates/project/src/debugger/locators/node.rs+++ b/crates/project/src/debugger/locators/node.rs@@ -54,6 +54,10 @@ impl DapLocator for NodeLocator {"runtimeExecutable": program_path,"args": args,"cwd": build_config.cwd.clone(),+ "env": {+ "VITEST_MIN_FORKS": "0",+ "VITEST_MAX_FORKS": "1"+ },"runtimeArgs": ["--inspect-brk"],"console": "integratedTerminal",});