#lsp #server #scaffold

lsp-server

Generic LSP server scaffold

10 unstable releases (4 breaking)

0.5.0 Nov 16, 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

#62 in Text editors

Download history 4392/week @ 2020-10-02 4346/week @ 2020-10-09 4379/week @ 2020-10-16 4450/week @ 2020-10-23 3545/week @ 2020-10-30 3715/week @ 2020-11-06 3833/week @ 2020-11-13 3384/week @ 2020-11-20 3728/week @ 2020-11-27 5647/week @ 2020-12-04 7682/week @ 2020-12-11 4555/week @ 2020-12-18 2959/week @ 2020-12-25 3315/week @ 2021-01-01 3437/week @ 2021-01-08 3609/week @ 2021-01-15

17,605 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.1–1.9MB
~43K SLoC