We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 647f411 commit 9bca023Copy full SHA for 9bca023
crates/debugger_ui/src/debugger_panel.rs
@@ -582,7 +582,7 @@ impl DebugPanel {
582
583
task.await?;
584
585
- match request_type {
+ let result = match request_type {
586
DebugRequestType::Launch => {
587
let task = this.update(&mut cx, |this, cx| {
588
this.dap_store
@@ -615,7 +615,23 @@ impl DebugPanel {
615
})?
616
}
617
618
+ };
619
+
620
+ if result.is_err() {
621
+ this.update(&mut cx, |debug_panel, cx| {
622
+ debug_panel.dap_store.update(cx, |store, cx| {
623
+ cx.emit(DapStoreEvent::Notification(
624
+ "Failed to start debug session".into(),
625
+ ));
626
627
+ store
628
+ .shutdown_session(&session_id, cx)
629
+ .detach_and_log_err(cx);
630
+ });
631
+ })?;
632
633
634
+ result
635
})
636
.detach_and_log_err(cx);
637
0 commit comments