support changing wd by dap

pull/11492/head
Vulpesx 3 months ago
parent 2ebefd73cf
commit 6c2b4ce26e
No known key found for this signature in database
GPG Key ID: 16151F7622E4957D

@ -368,6 +368,14 @@ impl Editor {
};
let mut process = std::process::Command::new(config.command);
process
.args(
config
.args
.into_iter()
.map(|s| s.replace("%{cwd}", &arguments.cwd)), // temporary until #11164 is merged
)
.current_dir(arguments.cwd);
if config.join_args {
process.arg(arguments.args.join(" "));

Loading…
Cancel
Save