aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-lsp/src')
-rw-r--r--helix-lsp/src/client.rs1
-rw-r--r--helix-lsp/src/lib.rs1
-rw-r--r--helix-lsp/src/transport.rs1
3 files changed, 3 insertions, 0 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index 9c85beef..739ff9c2 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -16,6 +16,7 @@ use tokio::{
sync::mpsc::{channel, UnboundedReceiver, UnboundedSender},
};
+#[cfg_attr(feature = "debug", derive(Debug))]
pub struct Client {
_process: Child,
server_tx: UnboundedSender<Payload>,
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index 5c482774..197ca27d 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -172,6 +172,7 @@ impl Notification {
}
}
+#[cfg_attr(feature = "debug", derive(Debug))]
pub struct Registry {
inner: HashMap<LanguageId, Arc<Client>>,
diff --git a/helix-lsp/src/transport.rs b/helix-lsp/src/transport.rs
index c69c1ccf..876de929 100644
--- a/helix-lsp/src/transport.rs
+++ b/helix-lsp/src/transport.rs
@@ -31,6 +31,7 @@ enum ServerMessage {
Call(jsonrpc::Call),
}
+#[cfg_attr(feature = "debug", derive(Debug))]
pub struct Transport {
client_tx: UnboundedSender<jsonrpc::Call>,
client_rx: UnboundedReceiver<Payload>,