#lsp #server #scaffold

lsp-server

Generic LSP server scaffold

9 releases

new 0.4.1 Oct 19, 2020
0.3.4 Aug 17, 2020
0.3.3 Jun 20, 2020
0.3.1 Dec 31, 2019
0.3.0 Nov 7, 2019

#56 in Text editors

Download history 2739/week @ 2020-07-02 3195/week @ 2020-07-09 3923/week @ 2020-07-16 3319/week @ 2020-07-23 3628/week @ 2020-07-30 4003/week @ 2020-08-06 4364/week @ 2020-08-13 4274/week @ 2020-08-20 4339/week @ 2020-08-27 4468/week @ 2020-09-03 4203/week @ 2020-09-10 3578/week @ 2020-09-17 3907/week @ 2020-09-24 4447/week @ 2020-10-01 4497/week @ 2020-10-08 4059/week @ 2020-10-15

17,429 downloads per month
Used in 5 crates (4 directly)

MIT/Apache

25KB
530 lines

lsp-server

A language server scaffold exposing a crossbeam-channel API.

Description

This crate is a language server scaffold, exposing a synchronous crossbeam-channel based API. It handles protocol handshaking and parsing messages, while you control the message dispatch loop yourself.

See examples/goto_def.rs for a minimal example LSP server that can only respond to the gotoDefinition request. To use the example, execute it and then send an initialize request.

Dependencies

~1.2–1.9MB
~43K SLoC