fixes for wsl hosting (#183491)

This commit is contained in:
Connor Peet 2023-05-25 23:47:56 -07:00 committed by GitHub
parent fb335eb1a0
commit 8242d20803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -611,6 +611,7 @@ async fn handle_serve(
) -> Result<EmptyObject, AnyError> {
// fill params.extensions into code_server_args.install_extensions
let mut csa = c.code_server_args.clone();
csa.connection_token = params.connection_token;
csa.install_extensions.extend(params.extensions.into_iter());
let params_raw = ServerParamsRaw {
@ -1034,8 +1035,7 @@ async fn handle_spawn_cli(
// CLI args to spawn a server; contracted with clients that they should _not_ provide these.
p.arg("--verbose");
p.arg("tunnel");
p.arg("stdio");
p.arg("command-shell");
p.envs(&params.env);
p.stdin(Stdio::piped());