multi_buffer: Fix up some anchor checks (#43454)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-11-25 13:41:19 +00:00
committed by GitHub
parent a359a5a1f2
commit f8965317c3
15 changed files with 154 additions and 58 deletions
+11 -14
View File
@@ -141,10 +141,6 @@ impl WslRemoteConnection {
windows_path_to_wsl_path_impl(&self.connection_options, source, self.can_exec).await
}
fn wsl_command(&self, program: &str, args: &[impl AsRef<OsStr>]) -> process::Command {
wsl_command_impl(&self.connection_options, program, args, self.can_exec)
}
async fn run_wsl_command(&self, program: &str, args: &[&str]) -> Result<String> {
run_wsl_command_impl(&self.connection_options, program, args, self.can_exec).await
}
@@ -345,16 +341,17 @@ impl RemoteConnection for WslRemoteConnection {
if reconnect {
proxy_args.push("--reconnect".to_owned());
}
let proxy_process = match self
.wsl_command("env", &proxy_args)
.kill_on_drop(true)
.spawn()
{
Ok(process) => process,
Err(error) => {
return Task::ready(Err(anyhow!("failed to spawn remote server: {}", error)));
}
};
let proxy_process =
match wsl_command_impl(&self.connection_options, "env", &proxy_args, self.can_exec)
.kill_on_drop(true)
.spawn()
{
Ok(process) => process,
Err(error) => {
return Task::ready(Err(anyhow!("failed to spawn remote server: {}", error)));
}
};
super::handle_rpc_messages_over_child_process_stdio(
proxy_process,