Show tasks in debugger: start (#30584)
- **Show relevant tasks in debugger: start** - **Add history too** Closes #ISSUE Release Notes: - N/A --------- Co-authored-by: Cole <cole@zed.dev> Co-authored-by: Anthony <anthony@zed.dev>
This commit is contained in:
parent
7eb226b3fc
commit
1fd8fbe6d1
8 changed files with 272 additions and 159 deletions
|
@ -52,7 +52,7 @@ impl DapLocator for CargoLocator {
|
|||
}
|
||||
let mut task_template = build_config.clone();
|
||||
let cargo_action = task_template.args.first_mut()?;
|
||||
if cargo_action == "check" {
|
||||
if cargo_action == "check" || cargo_action == "clean" {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
@ -75,10 +75,9 @@ impl DapLocator for CargoLocator {
|
|||
}
|
||||
_ => {}
|
||||
}
|
||||
let label = format!("Debug `{resolved_label}`");
|
||||
Some(DebugScenario {
|
||||
adapter: adapter.0,
|
||||
label: SharedString::from(label),
|
||||
label: resolved_label.to_string().into(),
|
||||
build: Some(BuildTaskDefinition::Template {
|
||||
task_template,
|
||||
locator_name: Some(self.name()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue