Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Update cargo.rs to allow debugging of integration test annotated with the ignore attribute (#42574)
mikeHag34a7cfb2e5e6
diff --git a/crates/project/src/debugger/locators/cargo.rs b/crates/project/src/debugger/locators/cargo.rsindex 662b9ca7efc..72aafff5160 100644--- a/crates/project/src/debugger/locators/cargo.rs+++ b/crates/project/src/debugger/locators/cargo.rs@@ -148,6 +148,8 @@ impl DapLocator for CargoLocator {.first().is_some_and(|arg| arg == "test" || arg == "t");+ let is_ignored = build_config.args.contains(&"--include-ignored".to_owned());+let executables = output.lines().filter(|line| !line.trim().is_empty())@@ -205,6 +207,9 @@ impl DapLocator for CargoLocator {let mut args: Vec<_> = test_name.into_iter().collect();if is_test {args.push("--nocapture".to_owned());+ if is_ignored {+ args.push("--include-ignored".to_owned());+ }}Ok(DebugRequest::Launch(task::LaunchRequest {