debug: Launch custom commands from start modal (#32484)
Release Notes: - Add custom command launching from the `debug: start` modal --------- Co-authored-by: Anthony Eid <hello@anthonyeid.me>
This commit is contained in:
parent
e4f8c4fb4c
commit
dd17fd3d5a
6 changed files with 171 additions and 21 deletions
|
@ -75,6 +75,7 @@ impl DapLocator for CargoLocator {
|
|||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Some(DebugScenario {
|
||||
adapter: adapter.0,
|
||||
label: resolved_label.to_string().into(),
|
||||
|
|
|
@ -98,7 +98,6 @@ impl DapLocator for GoLocator {
|
|||
if build_config.command != "go" {
|
||||
return None;
|
||||
}
|
||||
|
||||
let go_action = build_config.args.first()?;
|
||||
|
||||
match go_action.as_str() {
|
||||
|
|
|
@ -31,8 +31,7 @@ impl DapLocator for NodeLocator {
|
|||
if cfg!(not(debug_assertions)) {
|
||||
return None;
|
||||
}
|
||||
|
||||
if adapter.as_ref() != "JavaScript" {
|
||||
if adapter.0.as_ref() != "JavaScript" {
|
||||
return None;
|
||||
}
|
||||
if build_config.command != TYPESCRIPT_RUNNER_VARIABLE.template_value() {
|
||||
|
|
|
@ -22,7 +22,7 @@ impl DapLocator for PythonLocator {
|
|||
resolved_label: &str,
|
||||
adapter: DebugAdapterName,
|
||||
) -> Option<DebugScenario> {
|
||||
if adapter.as_ref() != "Debugpy" {
|
||||
if adapter.0.as_ref() != "Debugpy" {
|
||||
return None;
|
||||
}
|
||||
let valid_program = build_config.command.starts_with("$ZED_")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue