Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--helix-dap/src/client.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index 1ecd949f..eb45e143 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -454,6 +454,15 @@ impl Client {
}
pub async fn configuration_done(&self) -> Result<()> {
+ if !self
+ .caps
+ .as_ref()
+ .and_then(|caps| caps.supports_configuration_done_request)
+ .unwrap_or(false)
+ {
+ return Ok(());
+ }
+
self.request::<requests::ConfigurationDone>(Some(requests::ConfigurationDoneArguments {}))
.await
}