aboutsummaryrefslogtreecommitdiff
path: root/helix-dap
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-10-17 04:58:11 +0000
committerBlaž Hrastnik2021-10-17 04:58:11 +0000
commit83a816740268ec527bf2f908cf752cfcbedc81f9 (patch)
tree8b28ece40ab5d9a8ad5cddbf2712385bd84a4cc8 /helix-dap
parentea59f77a6baa0658b50fed50739e1f8956819395 (diff)
Invert core -> dap dependency
Diffstat (limited to 'helix-dap')
-rw-r--r--helix-dap/Cargo.toml1
-rw-r--r--helix-dap/src/client.rs10
-rw-r--r--helix-dap/src/lib.rs2
3 files changed, 4 insertions, 9 deletions
diff --git a/helix-dap/Cargo.toml b/helix-dap/Cargo.toml
index 60115447..2b922e84 100644
--- a/helix-dap/Cargo.toml
+++ b/helix-dap/Cargo.toml
@@ -12,6 +12,7 @@ homepage = "https://helix-editor.com"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
+helix-core = { version = "0.4", path = "../helix-core" }
anyhow = "1.0"
log = "0.4"
serde = { version = "1.0", features = ["derive"] }
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index 72aff5d2..62557951 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -3,9 +3,10 @@ use crate::{
types::*,
Error, Result,
};
+use helix_core::syntax::DebuggerQuirks;
+
use anyhow::anyhow;
pub use log::{error, info};
-use serde::{Deserialize, Serialize};
use std::{
collections::HashMap,
net::{IpAddr, Ipv4Addr, SocketAddr},
@@ -21,13 +22,6 @@ use tokio::{
time,
};
-// Different workarounds for adapters' differences
-#[derive(Debug, Default, PartialEq, Clone, Serialize, Deserialize)]
-pub struct DebuggerQuirks {
- #[serde(default)]
- pub absolute_paths: bool,
-}
-
#[derive(Debug)]
pub struct Client {
id: usize,
diff --git a/helix-dap/src/lib.rs b/helix-dap/src/lib.rs
index 100c0c60..f60b102c 100644
--- a/helix-dap/src/lib.rs
+++ b/helix-dap/src/lib.rs
@@ -2,7 +2,7 @@ mod client;
mod transport;
mod types;
-pub use client::{Client, DebuggerQuirks};
+pub use client::Client;
pub use events::Event;
pub use transport::{Payload, Response, Transport};
pub use types::*;