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:
parent
e224da8522
commit
82fac9da82
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue