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
This commit is contained in:
Diego ROJAS 2023-12-15 23:11:05 +08:00 committed by GitHub
parent b1d0eb4ffe
commit 2a433cdf75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,10 @@ name = "llm-ls"
[dependencies] [dependencies]
home = "0.5" 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 = [ reqwest = { version = "0.11", default-features = false, features = [
"json", "json",
"rustls-tls", "rustls-tls",