aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/src/client.rs
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-13 17:18:15 +0000
committerBlaž Hrastnik2021-08-20 04:43:54 +0000
commit3d64cf8356044fb272fd0a93e8235f967b9da156 (patch)
tree9e0b60851c5491f11dfcc6dbb897f6d3db605dda /helix-dap/src/client.rs
parentfabee039835e18ec464164f60182689f7489cfe7 (diff)
fix: move adapter_id out of DAP client
Diffstat (limited to 'helix-dap/src/client.rs')
-rw-r--r--helix-dap/src/client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index cbb24d15..41e7dca6 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -350,11 +350,11 @@ impl Client {
.expect("language server not yet initialized!")
}
- pub async fn initialize(&mut self) -> Result<()> {
+ pub async fn initialize(&mut self, adapter_id: String) -> Result<()> {
let args = InitializeArguments {
client_id: "hx".to_owned(),
client_name: "helix".to_owned(),
- adapter_id: "go".to_owned(),
+ adapter_id,
locale: "en-us".to_owned(),
lines_start_at_one: true,
columns_start_at_one: true,