remote: Introduce a proper mock remote connection (#46337)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth authored and GitHub committed 2026-01-08 12:13:57 +00:00
1 parent fb5df4d615
commit b964784d3d
22 files changed
+426 -254

No files matched your search

+3 -1
View File
@@ -59,7 +59,9 @@ impl DebugAdapterClient {
pub fn should_reconnect_for_ssh(&self) -> bool {
self.transport_delegate.tcp_arguments().is_some()
&& self.binary.command.as_deref() == Some("ssh")
&& (self.binary.command.as_deref() == Some("ssh")
|| (cfg!(feature = "test-support")
&& self.binary.command.as_deref() == Some("mock")))
}
pub async fn connect(
+1 -4
View File
@@ -221,10 +221,7 @@ impl TransportDelegate {
}));
}
{
let mut lock = self.server_tx.lock().await;
*lock = Some(server_tx.clone());
}
*self.server_tx.lock().await = Some(server_tx.clone());
Ok(())
}