From 2a433cdf75dc0a225e95753256f2601161bc6747 Mon Sep 17 00:00:00 2001 From: Diego ROJAS Date: Fri, 15 Dec 2023 23:11:05 +0800 Subject: [PATCH] Disable ropey unicode_lines feature (#50) With the current configuration, Ropey recognises more EOL sequences than the Language Server Protocol. This mismatch can lead to errors when trying to maintain a mirror of the user's documents as the llm-ls might have more lines. See: https://docs.rs/ropey/1.6.0/ropey/index.html#a-note-about-line-breaks See: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocuments --- crates/llm-ls/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/llm-ls/Cargo.toml b/crates/llm-ls/Cargo.toml index 62bb5b1..7ac7cec 100644 --- a/crates/llm-ls/Cargo.toml +++ b/crates/llm-ls/Cargo.toml @@ -8,7 +8,10 @@ name = "llm-ls" [dependencies] home = "0.5" -ropey = "1.6" +ropey = { version = "1.6", default-features = false, features = [ + "simd", + "cr_lines", +] } reqwest = { version = "0.11", default-features = false, features = [ "json", "rustls-tls",