From fabee039835e18ec464164f60182689f7489cfe7 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Fri, 13 Aug 2021 20:13:27 +0300 Subject: dap: support TCP clients --- helix-dap/examples/dap-basic.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'helix-dap/examples/dap-basic.rs') 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::().unwrap(), 0).await; + println!("create: {:?}", client); + let mut client = client?; println!("init: {:?}", client.initialize().await); println!("caps: {:#?}", client.capabilities()); -- cgit v1.2.3-70-g09d2