diff options
Diffstat (limited to 'helix-dap/src/client.rs')
-rw-r--r-- | helix-dap/src/client.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs index 09b4eaa1..61c05a0b 100644 --- a/helix-dap/src/client.rs +++ b/helix-dap/src/client.rs @@ -288,16 +288,12 @@ impl Client { self.request::<requests::Disconnect>(()).await } - pub async fn launch(&mut self, args: serde_json::Value) -> Result<Value> { - let response = self.request::<requests::Launch>(args).await?; - log::error!("launch response {}", response); - Ok(response) + pub fn launch(&self, args: serde_json::Value) -> impl Future<Output = Result<Value>> { + self.call::<requests::Launch>(args) } - pub async fn attach(&mut self, args: serde_json::Value) -> Result<Value> { - let response = self.request::<requests::Attach>(args).await?; - log::error!("attach response {}", response); - Ok(response) + pub fn attach(&self, args: serde_json::Value) -> impl Future<Output = Result<Value>> { + self.call::<requests::Attach>(args) } pub async fn set_breakpoints( |