debugger: Don't spawn unnecessary process (#32827)

Before this change, when spawning a child session we'd launch an extra
node process that would immediately die because it couldn't listen on
the debugger port

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-06-16 19:08:56 -06:00 committed by GitHub
parent 6d96f8be8e
commit 783412fa1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,10 +79,10 @@ impl DebugAdapterClient {
) -> Result<Self> {
let binary = match self.transport_delegate.transport() {
crate::transport::Transport::Tcp(tcp_transport) => DebugAdapterBinary {
command: binary.command,
arguments: binary.arguments,
envs: binary.envs,
cwd: binary.cwd,
command: None,
arguments: Default::default(),
envs: Default::default(),
cwd: Default::default(),
connection: Some(crate::adapters::TcpArguments {
host: tcp_transport.host,
port: tcp_transport.port,