#lsp #async #stub #futures #json-rpc #lsp-server #server

lsp-async-stub

An LSP server stub for futures

9 releases (5 breaking)

0.6.0 Jun 12, 2022
0.5.0 Mar 26, 2022
0.4.0 Jan 28, 2022
0.3.3 Nov 9, 2021
0.1.1 Dec 28, 2020

#541 in Asynchronous

Download history 1162/week @ 2023-02-08 1255/week @ 2023-02-15 1483/week @ 2023-02-22 1388/week @ 2023-03-01 1221/week @ 2023-03-08 1010/week @ 2023-03-15 913/week @ 2023-03-22 919/week @ 2023-03-29 727/week @ 2023-04-05 936/week @ 2023-04-12 707/week @ 2023-04-19 742/week @ 2023-04-26 963/week @ 2023-05-03 1034/week @ 2023-05-10 944/week @ 2023-05-17 897/week @ 2023-05-24

3,995 downloads per month
Used in 4 crates

MIT license

48KB
1.5K SLoC

LSP Async Stub

This library provides utilities and a basic server stub for asynchronous LSP communication with JSON RPC.

Used mainly by taplo-lsp.

The server stub expects async handlers that will be called for each message along with the parameters in the message and a context for shared data, cancellation and sending further requests/notifications back to the client. It also handles invalid messages, initialization and teardown according to the LSP spec.

Dependencies

~4–10MB
~207K SLoC