support changing env by dap

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

@ -375,6 +375,15 @@ impl Editor {
process.args(arguments.args); process.args(arguments.args);
} }
if let Some(env) = arguments.env {
for (k, v) in env {
match v {
Some(v) => process.env(k, v),
None => process.env_remove(k),
};
}
}
let process = match process.spawn() { let process = match process.spawn() {
Ok(process) => process, Ok(process) => process,
Err(err) => { Err(err) => {

Loading…
Cancel
Save