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:
Julia Ryan 2025-06-10 13:29:11 -07:00 committed by GitHub
parent e4f8c4fb4c
commit dd17fd3d5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 171 additions and 21 deletions

View file

@ -75,6 +75,7 @@ impl DapLocator for CargoLocator {
}
_ => {}
}
Some(DebugScenario {
adapter: adapter.0,
label: resolved_label.to_string().into(),

View file

@ -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() {

View file

@ -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() {

View file

@ -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_")