diff options
Diffstat (limited to 'helix-dap/examples/dap-lldb.rs')
-rw-r--r-- | helix-dap/examples/dap-lldb.rs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/helix-dap/examples/dap-lldb.rs b/helix-dap/examples/dap-lldb.rs index 97d842ab..6fe666b2 100644 --- a/helix-dap/examples/dap-lldb.rs +++ b/helix-dap/examples/dap-lldb.rs @@ -11,13 +11,15 @@ struct LaunchArguments { } async fn output(mut output_event: Receiver<Event>) { - let body: OutputEventBody = - from_value(output_event.recv().await.unwrap().body.unwrap()).unwrap(); - println!( - "> [{}] {}", - body.category.unwrap_or("unknown".to_owned()), - body.output - ); + loop { + let body: OutputEventBody = + from_value(output_event.recv().await.unwrap().body.unwrap()).unwrap(); + println!( + "> [{}] {}", + body.category.unwrap_or("unknown".to_owned()), + body.output + ); + } } #[tokio::main] |