From 78c158e1a446a09cf62408dea12370821a61329d Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 29 Oct 2021 12:02:42 +0200 Subject: [PATCH] Support only UTF-8 for now when communicating with language server --- crates/lsp/Cargo.toml | 2 +- crates/lsp/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/lsp/Cargo.toml b/crates/lsp/Cargo.toml index 263eed76fb..08c48b7ec3 100644 --- a/crates/lsp/Cargo.toml +++ b/crates/lsp/Cargo.toml @@ -13,7 +13,7 @@ anyhow = "1.0" async-pipe = { git = "https://github.com/routerify/async-pipe-rs", rev = "feeb77e83142a9ff837d0767652ae41bfc5d8e47", optional = true } futures = "0.3" log = "0.4" -lsp-types = "0.91" +lsp-types = { version = "0.91", features = ["proposed"] } parking_lot = "0.11" postage = { version = "0.4.1", features = ["futures-traits"] } serde = { version = "1.0", features = ["derive"] } diff --git a/crates/lsp/src/lib.rs b/crates/lsp/src/lib.rs index 642595c5ad..1d6ed44394 100644 --- a/crates/lsp/src/lib.rs +++ b/crates/lsp/src/lib.rs @@ -226,6 +226,7 @@ impl LanguageServer { experimental: Some(json!({ "serverStatusNotification": true, })), + offset_encoding: Some(vec!["utf-8".to_string()]), ..Default::default() }, trace: Default::default(),