aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/examples
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-10-17 05:11:59 +0000
committerBlaž Hrastnik2021-10-17 05:12:03 +0000
commitd6e8a44d8510b2ae75d660a5f260d97e6dc7e797 (patch)
treef47791c8917621739fe9d168267ba0afd14dedd6 /helix-dap/examples
parentbda05ec4bfb861c9880dd700ab31c1f9bc79e926 (diff)
dap: Fix examples
Diffstat (limited to 'helix-dap/examples')
-rw-r--r--helix-dap/examples/dap-dlv.rs7
-rw-r--r--helix-dap/examples/dap-lldb.rs7
2 files changed, 10 insertions, 4 deletions
diff --git a/helix-dap/examples/dap-dlv.rs b/helix-dap/examples/dap-dlv.rs
index dacc7045..24b26a74 100644
--- a/helix-dap/examples/dap-dlv.rs
+++ b/helix-dap/examples/dap-dlv.rs
@@ -1,4 +1,4 @@
-use helix_dap::{events, Client, Event, Payload, Result, SourceBreakpoint};
+use helix_dap::{events, Client, Event, Payload, Result, SourceBreakpoint, ThreadId};
use serde::{Deserialize, Serialize};
use serde_json::to_value;
use tokio::sync::mpsc::UnboundedReceiver;
@@ -109,7 +109,10 @@ pub async fn main() -> Result<()> {
.read_line(&mut _in)
.expect("Failed to read line");
- println!("continued: {:?}", client.continue_thread(0).await);
+ println!(
+ "continued: {:?}",
+ client.continue_thread(ThreadId::default()).await
+ );
let mut _in = String::new();
std::io::stdin()
diff --git a/helix-dap/examples/dap-lldb.rs b/helix-dap/examples/dap-lldb.rs
index ae18b214..935de5fe 100644
--- a/helix-dap/examples/dap-lldb.rs
+++ b/helix-dap/examples/dap-lldb.rs
@@ -1,4 +1,4 @@
-use helix_dap::{events, Client, Event, Payload, Result, SourceBreakpoint};
+use helix_dap::{events, Client, Event, Payload, Result, SourceBreakpoint, ThreadId};
use serde::{Deserialize, Serialize};
use serde_json::to_value;
use tokio::sync::mpsc::UnboundedReceiver;
@@ -111,7 +111,10 @@ pub async fn main() -> Result<()> {
.read_line(&mut _in)
.expect("Failed to read line");
- println!("continued: {:?}", client.continue_thread(0).await);
+ println!(
+ "continued: {:?}",
+ client.continue_thread(ThreadId::default()).await
+ );
let mut _in = String::new();
std::io::stdin()