#language #server #lsp #vscode

lsp-types

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

34 releases (20 breaking)

✓ Uses Rust 2018 edition

new 0.74.2 May 30, 2020
0.74.0 Apr 26, 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 6336/week @ 2020-02-09 6705/week @ 2020-02-16 7683/week @ 2020-02-23 8454/week @ 2020-03-01 7264/week @ 2020-03-08 7879/week @ 2020-03-15 10255/week @ 2020-03-22 11574/week @ 2020-03-29 10096/week @ 2020-04-05 11192/week @ 2020-04-12 11917/week @ 2020-04-19 12292/week @ 2020-04-26 13573/week @ 2020-05-03 13169/week @ 2020-05-10 11189/week @ 2020-05-17 10786/week @ 2020-05-24

46,315 downloads per month
Used in 14 crates (11 directly)

MIT license

205KB
3.5K 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

~3MB
~78K SLoC