Unnamed repository; edit this file 'description' to name the repository.
dap: Don't manually join args
The DAP spec uses an array of values so that arguments can be passed through without having to worry about escaping. We should let process::Command do this for us or we can run into problems if an arg contains spaces.
Blaž Hrastnik 4 weeks ago
parent 0343e2e · commit c63044c
-rw-r--r--helix-view/src/handlers/dap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/handlers/dap.rs b/helix-view/src/handlers/dap.rs
index f8f3c1b8..a8b3d88d 100644
--- a/helix-view/src/handlers/dap.rs
+++ b/helix-view/src/handlers/dap.rs
@@ -492,7 +492,7 @@ impl Editor {
let process = match std::process::Command::new(&config.command)
.args(&config.args)
- .arg(arguments.args.join(" "))
+ .args(&arguments.args)
.spawn()
{
Ok(process) => process,