parent
f7e77123cc
commit
02765947e0
@ -212,7 +212,6 @@ impl DebugPanel {
|
|||||||
cx: &mut Context<Self>,
|
cx: &mut Context<Self>,
|
||||||
) {
|
) {
|
||||||
let dap_store = self.project.read(cx).dap_store();
|
let dap_store = self.project.read(cx).dap_store();
|
||||||
let workspace = self.workspace.clone();
|
|
||||||
let session = dap_store.update(cx, |dap_store, cx| {
|
let session = dap_store.update(cx, |dap_store, cx| {
|
||||||
dap_store.new_session(
|
dap_store.new_session(
|
||||||
scenario.label.clone(),
|
scenario.label.clone(),
|
||||||
@ -251,14 +250,14 @@ impl DebugPanel {
|
|||||||
|
|
||||||
cx.spawn(async move |_, cx| {
|
cx.spawn(async move |_, cx| {
|
||||||
if let Err(error) = task.await {
|
if let Err(error) = task.await {
|
||||||
log::error!("{:?}", error);
|
|
||||||
workspace
|
|
||||||
.update(cx, |workspace, cx| {
|
|
||||||
workspace.show_error(&error, cx);
|
|
||||||
})
|
|
||||||
.ok();
|
|
||||||
session
|
session
|
||||||
.update(cx, |session, cx| session.shutdown(cx))?
|
.update(cx, |session, cx| {
|
||||||
|
session
|
||||||
|
.console_output(cx)
|
||||||
|
.unbounded_send(format!("error: {}", error))
|
||||||
|
.ok();
|
||||||
|
session.shutdown(cx)
|
||||||
|
})?
|
||||||
.await;
|
.await;
|
||||||
}
|
}
|
||||||
anyhow::Ok(())
|
anyhow::Ok(())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user