Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 145f5b2

Browse files
bruno-medeirosbruno
authored andcommitted
Use RustLSP library.
A more extensive and principled way to handle the LSP protocol. Adds *interface* support for all LSP requests. Fixes: * 'completionItem/resolve' should return CompletionItem not a vector * Concurrent handling of requests. Requests must be handled in order, otherwise, for example, text document changes could be applied out of order. Only read-only requests can conceptually be executed in parallel (since that would have the same result as if they were processed in order). See here for more info: microsoft/language-server-protocol#12 TODO for RustLSP: * Cancel support
1 parent bee4208 commit 145f5b2

File tree

7 files changed

+421
-528
lines changed

7 files changed

+421
-528
lines changed

Cargo.lock

Lines changed: 46 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = ["Jonathan Turner <[email protected]>"]
77
cargo = { path = "../cargo" }
88
derive-new = "0.3"
99
env_logger = "0.3"
10-
languageserver-types = { version = "0.5.0", git = "https://github.com/gluon-lang/languageserver-types" }
10+
rust_lsp = { version = "0.6.0", git = "https://github.com/RustDT/RustLSP" }
1111
log = "0.3"
1212
racer = { git = "https://github.com/phildawes/racer" }
1313
rls-span = { git = "https://github.com/nrc/rls-span" }

0 commit comments

Comments
 (0)