debugger: Always use runtimeExecutable for node-terminal scenarios (#33794)

cc @afgomez 

Release Notes:

- debugger: Fixed `node-terminal` debug configurations not working with
some commands.
This commit is contained in:
Cole Miller 2025-07-02 16:37:52 -04:00 committed by GitHub
parent e224da8522
commit 82fac9da82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,9 +79,9 @@ impl JsDebugAdapter {
let command = configuration.get("command")?.as_str()?.to_owned();
let mut args = shlex::split(&command)?.into_iter();
let program = args.next()?;
configuration.insert("program".to_owned(), program.into());
configuration.insert("runtimeExecutable".to_owned(), program.into());
configuration.insert(
"args".to_owned(),
"runtimeArgs".to_owned(),
args.map(Value::from).collect::<Vec<_>>().into(),
);
configuration.insert("console".to_owned(), "externalTerminal".into());