mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
cli: fix command prompt showing up on windows (#194946)
cli: fix wsl prompt up on windows machine Fixes #190425 again
This commit is contained in:
@@ -12,6 +12,7 @@ use crate::state::LauncherPaths;
|
||||
use crate::tunnels::protocol::{HttpRequestParams, METHOD_CHALLENGE_ISSUE};
|
||||
use crate::tunnels::socket_signal::CloseReason;
|
||||
use crate::update_service::{Platform, Release, TargetKind, UpdateService};
|
||||
use crate::util::command::new_tokio_command;
|
||||
use crate::util::errors::{
|
||||
wrap, AnyError, CodeError, MismatchedLaunchModeError, NoAttachedServerError,
|
||||
};
|
||||
@@ -1019,7 +1020,7 @@ where
|
||||
};
|
||||
}
|
||||
|
||||
let mut p = tokio::process::Command::new(¶ms.command);
|
||||
let mut p = new_tokio_command(¶ms.command);
|
||||
p.args(¶ms.args);
|
||||
p.envs(¶ms.env);
|
||||
p.stdin(pipe_if!(stdin.is_some()));
|
||||
@@ -1060,7 +1061,7 @@ async fn handle_spawn_cli(
|
||||
"requested to spawn cli {} with args {:?}", params.command, params.args
|
||||
);
|
||||
|
||||
let mut p = tokio::process::Command::new(¶ms.command);
|
||||
let mut p = new_tokio_command(¶ms.command);
|
||||
p.args(¶ms.args);
|
||||
|
||||
// CLI args to spawn a server; contracted with clients that they should _not_ provide these.
|
||||
|
||||
Reference in New Issue
Block a user