Fix compile error with optional port

This commit is contained in:
Remco Smits
2025-02-27 17:29:50 +01:00
parent 43bf537bba
commit f8eebc73f5

View File

@@ -1,3 +1,4 @@
use dap::transport::TcpTransport;
use gpui::AsyncApp;
use serde_json::Value;
use std::{ffi::OsString, path::PathBuf};
@@ -34,7 +35,7 @@ impl DebugAdapter for CustomDebugAdapter {
{
Some(adapters::TcpArguments {
host: connection.host(),
port: connection.port,
port: TcpTransport::port(&connection).await?,
timeout: connection.timeout,
})
} else {