#language #server #lsp #vscode

lsp-types

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

40 releases (25 breaking)

0.79.0 Jul 26, 2020
0.77.0 Jul 15, 2020
0.73.0 Mar 7, 2020
0.68.0 Dec 29, 2019
0.56.0 Feb 14, 2019

#1 in Text editors

Download history 11675/week @ 2020-04-22 13278/week @ 2020-04-29 13213/week @ 2020-05-06 12468/week @ 2020-05-13 10951/week @ 2020-05-20 11451/week @ 2020-05-27 11818/week @ 2020-06-03 11397/week @ 2020-06-10 8748/week @ 2020-06-17 7111/week @ 2020-06-24 9195/week @ 2020-07-01 11610/week @ 2020-07-08 12198/week @ 2020-07-15 10530/week @ 2020-07-22 9856/week @ 2020-07-29 10509/week @ 2020-08-05

47,146 downloads per month
Used in 16 crates (13 directly)

MIT license

205KB
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.3–3MB
~81K SLoC