Revert "Use ShellKind::try_quote whenever we need to quote shell args" (#41022)

Reverts zed-industries/zed#40912

Closes https://github.com/zed-industries/zed/issues/41010
This commit is contained in:
Jakub Konka
2025-10-23 16:06:47 +00:00
committed by GitHub
parent 738e248109
commit 023ac1b649
22 changed files with 232 additions and 317 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ use gpui::AsyncApp;
use serde_json::Value;
use std::{path::PathBuf, sync::OnceLock};
use task::DebugRequest;
use util::{ResultExt, maybe, shell::ShellKind};
use util::{ResultExt, maybe};
use crate::*;
@@ -67,7 +67,7 @@ impl JsDebugAdapter {
.get("type")
.filter(|value| value == &"node-terminal")?;
let command = configuration.get("command")?.as_str()?.to_owned();
let mut args = ShellKind::Posix.split(&command)?.into_iter();
let mut args = shlex::split(&command)?.into_iter();
let program = args.next()?;
configuration.insert("runtimeExecutable".to_owned(), program.into());
configuration.insert(