Skip to content

Commit

Permalink
Add missing event body mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Jun 29, 2024
1 parent 3d7cd5d commit 01d384e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions crates/dap/src/transport.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use anyhow::{anyhow, Context, Result};
use dap_types::{
BreakpointEvent, CapabilitiesEvent, ContinuedEvent, ExitedEvent, InvalidatedEvent,
LoadedSourceEvent, MemoryEvent, ModuleEvent, OutputEvent, ProcessEvent, StoppedEvent,
TerminatedEvent, ThreadEvent,
LoadedSourceEvent, MemoryEvent, ModuleEvent, OutputEvent, ProcessEvent, ProgressEndEvent,
ProgressStartEvent, ProgressUpdateEvent, StoppedEvent, TerminatedEvent, ThreadEvent,
};
use futures::{
channel::mpsc::{unbounded, Sender, UnboundedReceiver, UnboundedSender},
Expand Down Expand Up @@ -40,9 +40,9 @@ pub enum Events {
LoadedSource(LoadedSourceEvent),
Process(ProcessEvent),
Capabilities(CapabilitiesEvent),
ProgressStart,
ProgressUpdate,
ProgressEnd,
ProgressStart(ProgressStartEvent),
ProgressUpdate(ProgressUpdateEvent),
ProgressEnd(ProgressEndEvent),
Invalidated(InvalidatedEvent),
Memory(MemoryEvent),
}
Expand Down Expand Up @@ -201,7 +201,6 @@ impl Transport {
Err(_) => (),
},
None => {
dbg!("Response to nonexistent request #{}", res.request_seq);
client_tx.send(Payload::Response(res)).await.log_err();
}
}
Expand Down
6 changes: 3 additions & 3 deletions crates/debugger_ui/src/debugger_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ impl DebugPanel {
Events::Capabilities(_) => todo!(),
Events::Memory(_) => todo!(),
Events::Process(_) => todo!(),
Events::ProgressEnd => todo!(),
Events::ProgressStart => todo!(),
Events::ProgressUpdate => todo!(),
Events::ProgressEnd(_) => todo!(),
Events::ProgressStart(_) => todo!(),
Events::ProgressUpdate(_) => todo!(),
Events::Invalidated(_) => todo!(),
}
}
Expand Down

0 comments on commit 01d384e

Please sign in to comment.