Skip to content

Commit

Permalink
Disable ropey unicode_lines feature (#50)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rojas-diego authored Dec 15, 2023
1 parent b1d0eb4 commit 2a433cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/llm-ls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2a433cd

Please sign in to comment.