Unnamed repository; edit this file 'description' to name the repository.
fix(dap): report configurationDone errors
Matouš Dzivjak 4 months ago
parent 59b2e2c · commit 4f69a62
-rw-r--r--helix-view/src/handlers/dap.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/helix-view/src/handlers/dap.rs b/helix-view/src/handlers/dap.rs
index 9022ff63..209032c3 100644
--- a/helix-view/src/handlers/dap.rs
+++ b/helix-view/src/handlers/dap.rs
@@ -326,9 +326,14 @@ impl Editor {
}
// TODO: fetch breakpoints (in case we're attaching)
- if debugger.configuration_done().await.is_ok() {
+ if let Err(err) = debugger.configuration_done().await {
+ self.set_error(format!(
+ "Debugger configuration failed: {}",
+ err
+ ));
+ } else {
self.set_status("Debugged application started");
- }; // TODO: do we need to handle error?
+ }
self.debug_adapters.set_active_client(id);
}