aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/examples
diff options
context:
space:
mode:
Diffstat (limited to 'helix-dap/examples')
-rw-r--r--helix-dap/examples/dap-basic.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-dap/examples/dap-basic.rs b/helix-dap/examples/dap-basic.rs
index 81decd1a..68e8ab54 100644
--- a/helix-dap/examples/dap-basic.rs
+++ b/helix-dap/examples/dap-basic.rs
@@ -13,7 +13,9 @@ pub async fn main() -> Result<()> {
.apply()
.expect("Failed to set up logging");
- let mut client = Client::start("nc", vec!["127.0.0.1", "7777"], 0)?;
+ let client = Client::tcp("127.0.0.1:7777".parse::<std::net::SocketAddr>().unwrap(), 0).await;
+ println!("create: {:?}", client);
+ let mut client = client?;
println!("init: {:?}", client.initialize().await);
println!("caps: {:#?}", client.capabilities());