Skip to content

Commit 3fcf168

Browse files
authored
Merge pull request #11355 from helix-editor/helix-lsp-types
Vendor `lsp-types`
2 parents b19551b + af2ac55 commit 3fcf168

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+10163
-41
lines changed

Cargo.lock

Lines changed: 12 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ members = [
55
"helix-view",
66
"helix-term",
77
"helix-tui",
8+
"helix-lsp-types",
89
"helix-lsp",
910
"helix-event",
1011
"helix-dap",

docs/architecture.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11

2-
| Crate | Description |
3-
| ----------- | ----------- |
4-
| helix-core | Core editing primitives, functional. |
5-
| helix-lsp | Language server client |
6-
| helix-dap | Debug Adapter Protocol (DAP) client |
7-
| helix-loader | Functions for building, fetching, and loading external resources |
8-
| helix-view | UI abstractions for use in backends, imperative shell. |
9-
| helix-term | Terminal UI |
10-
| helix-tui | TUI primitives, forked from tui-rs, inspired by Cursive |
2+
| Crate | Description |
3+
| ----------- | ----------- |
4+
| helix-core | Core editing primitives, functional. |
5+
| helix-lsp | Language server client |
6+
| helix-lsp-types | Language Server Protocol type definitions |
7+
| helix-dap | Debug Adapter Protocol (DAP) client |
8+
| helix-loader | Functions for building, fetching, and loading external resources |
9+
| helix-view | UI abstractions for use in backends, imperative shell. |
10+
| helix-term | Terminal UI |
11+
| helix-tui | TUI primitives, forked from tui-rs, inspired by Cursive |
1112

1213

1314
This document contains a high-level overview of Helix internals.

helix-lsp-types/Cargo.lock

Lines changed: 176 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

helix-lsp-types/Cargo.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[package]
2+
name = "helix-lsp-types"
3+
version = "0.95.1"
4+
authors = [
5+
# Original authors
6+
"Markus Westerlind <[email protected]>",
7+
"Bruno Medeiros <[email protected]>",
8+
# Since forking
9+
"Helix contributors"
10+
]
11+
edition = "2018"
12+
description = "Types for interaction with a language server, using VSCode's Language Server Protocol"
13+
14+
repository = "https://github.com/gluon-lang/lsp-types"
15+
documentation = "https://docs.rs/lsp-types"
16+
17+
readme = "README.md"
18+
19+
keywords = ["language", "server", "lsp", "vscode", "lsif"]
20+
21+
license = "MIT"
22+
23+
[dependencies]
24+
bitflags = "1.0.1"
25+
serde = { version = "1.0.34", features = ["derive"] }
26+
serde_json = "1.0.50"
27+
serde_repr = "0.1"
28+
url = {version = "2.0.0", features = ["serde"]}
29+
30+
[features]
31+
default = []
32+
# Enables proposed LSP extensions.
33+
# NOTE: No semver compatibility is guaranteed for types enabled by this feature.
34+
proposed = []

helix-lsp-types/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Markus Westerlind
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
22+

helix-lsp-types/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Helix's `lsp-types`
2+
3+
This is a fork of the [`lsp-types`](https://crates.io/crates/lsp-types) crate ([`gluon-lang/lsp-types`](https://github.com/gluon-lang/lsp-types)) taken at version v0.95.1 (commit [3e6daee](https://github.com/gluon-lang/lsp-types/commit/3e6daee771d14db4094a554b8d03e29c310dfcbe)). This fork focuses usability improvements that make the types easier to work with for the Helix codebase. For example the URL type - the `uri` crate at this version of `lsp-types` - will be replaced with a wrapper around a string.

0 commit comments

Comments
 (0)