util: Use process spawn helpers in more places (#42976)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-11-18 14:31:39 +00:00
committed by GitHub
parent f1c2afdee0
commit 097024d46f
10 changed files with 53 additions and 37 deletions
@@ -3,13 +3,10 @@ use async_trait::async_trait;
use dap::{DapLocator, DebugRequest, adapters::DebugAdapterName};
use gpui::SharedString;
use serde_json::{Value, json};
use smol::{
Timer,
io::AsyncReadExt,
process::{Command, Stdio},
};
use smol::{Timer, io::AsyncReadExt, process::Stdio};
use std::time::Duration;
use task::{BuildTaskDefinition, DebugScenario, ShellBuilder, SpawnInTerminal, TaskTemplate};
use util::command::new_smol_command;
pub(crate) struct CargoLocator;
@@ -18,7 +15,7 @@ async fn find_best_executable(executables: &[String], test_name: &str) -> Option
return executables.first().cloned();
}
for executable in executables {
let Some(mut child) = Command::new(&executable)
let Some(mut child) = new_smol_command(&executable)
.arg("--list")
.stdout(Stdio::piped())
.spawn()