aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/Cargo.toml2
-rw-r--r--helix-lsp/src/client.rs3
-rw-r--r--helix-lsp/src/lib.rs2
3 files changed, 4 insertions, 3 deletions
diff --git a/helix-lsp/Cargo.toml b/helix-lsp/Cargo.toml
index 08216f59..2ecd0cc1 100644
--- a/helix-lsp/Cargo.toml
+++ b/helix-lsp/Cargo.toml
@@ -11,7 +11,7 @@ helix-core = { path = "../helix-core" }
helix-view = { path = "../helix-view" }
once_cell = "1.4"
-lsp-types = { version = "0.83", features = ["proposed"] }
+lsp-types = { version = "0.84", features = ["proposed"] }
smol = "1.2"
url = "2"
pathdiff = "0.2"
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index 1583bfb8..1f07cf89 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -183,7 +183,7 @@ impl Client {
#[allow(deprecated)]
let params = lsp::InitializeParams {
- process_id: Some(u64::from(std::process::id())),
+ process_id: Some(std::process::id()),
root_path: None,
// root_uri: Some(lsp_types::Url::parse("file://localhost/")?),
root_uri: None, // set to project root in the future
@@ -194,6 +194,7 @@ impl Client {
trace: None,
workspace_folders: None,
client_info: None,
+ locale: None, // TODO
};
let response = self.request::<lsp::request::Initialize>(params).await?;
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index 8353ef7d..eae6fa86 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -38,7 +38,7 @@ pub mod util {
let line_start = doc.char_to_utf16_cu(line);
let col = doc.char_to_utf16_cu(pos) - line_start;
- lsp::Position::new(line as u64, col as u64)
+ lsp::Position::new(line as u32, col as u32)
}
}