#language #server #lsp #vscode

lsp-types

Types for interaction with a language server, using VSCode’s Language Server Protocol

43 releases (28 breaking)

0.82.0 Sep 23, 2020
0.80.0 Sep 2, 2020
0.79.0 Jul 26, 2020
0.73.0 Mar 7, 2020
0.56.0 Feb 14, 2019

#1 in Text editors

Download history 8755/week @ 2020-06-30 11105/week @ 2020-07-07 12610/week @ 2020-07-14 10560/week @ 2020-07-21 9990/week @ 2020-07-28 10780/week @ 2020-08-04 11092/week @ 2020-08-11 10841/week @ 2020-08-18 10304/week @ 2020-08-25 10812/week @ 2020-09-01 10699/week @ 2020-09-08 10773/week @ 2020-09-15 10371/week @ 2020-09-22 10971/week @ 2020-09-29 12006/week @ 2020-10-06 10185/week @ 2020-10-13

44,981 downloads per month
Used in 22 crates (18 directly)

MIT license

215KB
4K SLoC

lsp-types Build Status Documentation

Types useful for interacting with a language server.

Supports Language Server Protocol (LSP) version 3.15.0.

Links

Protocol reference


lib.rs:

Language Server Protocol types for Rust.

Based on: https://microsoft.github.io/language-server-protocol/specification

This library uses the URL crate for parsing URIs. Note that there is some confusion on the meaning of URLs vs URIs: http://stackoverflow.com/a/28865728/393898. According to that information, on the classical sense of "URLs", "URLs" are a subset of URIs, But on the modern/new meaning of URLs, they are the same as URIs. The important take-away aspect is that the URL crate should be able to parse any URI, such as urn:isbn:0451450523.

Dependencies

~2.5–3.5MB
~92K SLoC