debugger: Run debug scenarios from package.json (#32958)

Release Notes:

- New session modal for a debugger will now show tasks from package.json
as debuggable scenarios

---------

Co-authored-by: Remco Smits <djsmits12@gmail.com>
Co-authored-by: Anthony Eid <hello@anthonyeid.me>
This commit is contained in:
Piotr Osiewicz 2025-06-18 20:04:25 +02:00 committed by GitHub
parent 73fee01c85
commit 99215f7660
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 83 additions and 25 deletions

View file

@ -28,7 +28,10 @@ impl DapLocator for NodeLocator {
if adapter.0.as_ref() != "JavaScript" {
return None;
}
if build_config.command != TYPESCRIPT_RUNNER_VARIABLE.template_value() {
if build_config.command != TYPESCRIPT_RUNNER_VARIABLE.template_value()
&& build_config.command != "composer"
&& build_config.command != "npm"
{
return None;
}