diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-19 23:02:11 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-19 23:02:11 +0000 |
commit | dbb62b5baa36783bbca06f09c77794fce3ceff0c (patch) | |
tree | 1437e92c1344b6936112530f5ea103f981c6c0e2 | |
parent | ef1e107df147a82b74089ab9797ce35effe24e5e (diff) | |
parent | 93cf39d96836056d63401099a98e7a511231a0d9 (diff) |
Merge #294
294: Bump languageserver-types to 0.53.0 to support LSP 3.14.0 r=matklad a=kjeremy
See: https://microsoft.github.io/language-server-protocol/specification#version_3_14_0
Co-authored-by: Jeremy A. Kolb <[email protected]>
-rw-r--r-- | Cargo.lock | 8 | ||||
-rw-r--r-- | crates/gen_lsp_server/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_lsp_server/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/Cargo.lock b/Cargo.lock index 15209184d..522550eb5 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
@@ -317,7 +317,7 @@ version = "0.1.0" | |||
317 | dependencies = [ | 317 | dependencies = [ |
318 | "crossbeam-channel 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", | 318 | "crossbeam-channel 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", |
319 | "failure 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", | 319 | "failure 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", |
320 | "languageserver-types 0.51.1 (registry+https://github.com/rust-lang/crates.io-index)", | 320 | "languageserver-types 0.53.0 (registry+https://github.com/rust-lang/crates.io-index)", |
321 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", | 321 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", |
322 | "serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", | 322 | "serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", |
323 | "serde_derive 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", | 323 | "serde_derive 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", |
@@ -399,7 +399,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
399 | 399 | ||
400 | [[package]] | 400 | [[package]] |
401 | name = "languageserver-types" | 401 | name = "languageserver-types" |
402 | version = "0.51.1" | 402 | version = "0.53.0" |
403 | source = "registry+https://github.com/rust-lang/crates.io-index" | 403 | source = "registry+https://github.com/rust-lang/crates.io-index" |
404 | dependencies = [ | 404 | dependencies = [ |
405 | "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", | 405 | "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", |
@@ -684,7 +684,7 @@ dependencies = [ | |||
684 | "flexi_logger 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", | 684 | "flexi_logger 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", |
685 | "gen_lsp_server 0.1.0", | 685 | "gen_lsp_server 0.1.0", |
686 | "im 12.2.0 (registry+https://github.com/rust-lang/crates.io-index)", | 686 | "im 12.2.0 (registry+https://github.com/rust-lang/crates.io-index)", |
687 | "languageserver-types 0.51.1 (registry+https://github.com/rust-lang/crates.io-index)", | 687 | "languageserver-types 0.53.0 (registry+https://github.com/rust-lang/crates.io-index)", |
688 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", | 688 | "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", |
689 | "ra_analysis 0.1.0", | 689 | "ra_analysis 0.1.0", |
690 | "ra_editor 0.1.0", | 690 | "ra_editor 0.1.0", |
@@ -1376,7 +1376,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
1376 | "checksum itertools 0.7.8 (registry+https://github.com/rust-lang/crates.io-index)" = "f58856976b776fedd95533137617a02fb25719f40e7d9b01c7043cd65474f450" | 1376 | "checksum itertools 0.7.8 (registry+https://github.com/rust-lang/crates.io-index)" = "f58856976b776fedd95533137617a02fb25719f40e7d9b01c7043cd65474f450" |
1377 | "checksum itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1306f3464951f30e30d12373d31c79fbd52d236e5e896fd92f96ec7babbbe60b" | 1377 | "checksum itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1306f3464951f30e30d12373d31c79fbd52d236e5e896fd92f96ec7babbbe60b" |
1378 | "checksum join_to_string 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7bddc885f3fd69dd4b5d747c2efe6dd2c36d795ea9938281ed50910e32c95e31" | 1378 | "checksum join_to_string 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7bddc885f3fd69dd4b5d747c2efe6dd2c36d795ea9938281ed50910e32c95e31" |
1379 | "checksum languageserver-types 0.51.1 (registry+https://github.com/rust-lang/crates.io-index)" = "68de833188ada4e175d04a028f03f244f6370eedbcc75a05604d47d925933f69" | 1379 | "checksum languageserver-types 0.53.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a0be4f8f783832a308975035043c0e8ad18e11c3f3d395aa6f1a9f3a30b8e654" |
1380 | "checksum lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a374c89b9db55895453a74c1e38861d9deec0b01b405a82516e9d5de4820dea1" | 1380 | "checksum lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a374c89b9db55895453a74c1e38861d9deec0b01b405a82516e9d5de4820dea1" |
1381 | "checksum libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)" = "76e3a3ef172f1a0b9a9ff0dd1491ae5e6c948b94479a3021819ba7d860c8645d" | 1381 | "checksum libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)" = "76e3a3ef172f1a0b9a9ff0dd1491ae5e6c948b94479a3021819ba7d860c8645d" |
1382 | "checksum lock_api 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "775751a3e69bde4df9b38dd00a1b5d6ac13791e4223d4a0506577f0dd27cfb7a" | 1382 | "checksum lock_api 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "775751a3e69bde4df9b38dd00a1b5d6ac13791e4223d4a0506577f0dd27cfb7a" |
diff --git a/crates/gen_lsp_server/Cargo.toml b/crates/gen_lsp_server/Cargo.toml index 08b357b1e..6c91e38aa 100644 --- a/crates/gen_lsp_server/Cargo.toml +++ b/crates/gen_lsp_server/Cargo.toml | |||
@@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0" | |||
8 | description = "Generic LSP server scaffold." | 8 | description = "Generic LSP server scaffold." |
9 | 9 | ||
10 | [dependencies] | 10 | [dependencies] |
11 | languageserver-types = "0.51.0" | 11 | languageserver-types = "0.53.0" |
12 | log = "0.4.3" | 12 | log = "0.4.3" |
13 | failure = "0.1.2" | 13 | failure = "0.1.2" |
14 | serde_json = "1.0.24" | 14 | serde_json = "1.0.24" |
diff --git a/crates/ra_lsp_server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml index 30a8d35cd..ce4f79d46 100644 --- a/crates/ra_lsp_server/Cargo.toml +++ b/crates/ra_lsp_server/Cargo.toml | |||
@@ -18,7 +18,7 @@ crossbeam-channel = "0.2.4" | |||
18 | flexi_logger = "0.10.0" | 18 | flexi_logger = "0.10.0" |
19 | log = "0.4.3" | 19 | log = "0.4.3" |
20 | url_serde = "0.2.0" | 20 | url_serde = "0.2.0" |
21 | languageserver-types = "0.51.0" | 21 | languageserver-types = "0.53.0" |
22 | walkdir = "2.2.0" | 22 | walkdir = "2.2.0" |
23 | im = "12.0.0" | 23 | im = "12.0.0" |
24 | cargo_metadata = "0.6.0" | 24 | cargo_metadata = "0.6.0" |
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 21ca22c5c..acca480c7 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -6,7 +6,7 @@ use languageserver_types::{ | |||
6 | DiagnosticSeverity, DocumentSymbol, Documentation, FoldingRange, FoldingRangeKind, | 6 | DiagnosticSeverity, DocumentSymbol, Documentation, FoldingRange, FoldingRangeKind, |
7 | FoldingRangeParams, InsertTextFormat, Location, MarkupContent, MarkupKind, MarkedString, Position, | 7 | FoldingRangeParams, InsertTextFormat, Location, MarkupContent, MarkupKind, MarkedString, Position, |
8 | PrepareRenameResponse, RenameParams, SymbolInformation, TextDocumentIdentifier, TextEdit, | 8 | PrepareRenameResponse, RenameParams, SymbolInformation, TextDocumentIdentifier, TextEdit, |
9 | WorkspaceEdit, ParameterInformation, SignatureInformation, Hover, HoverContents, | 9 | WorkspaceEdit, ParameterInformation, ParameterLabel, SignatureInformation, Hover, HoverContents, |
10 | }; | 10 | }; |
11 | use ra_analysis::{FileId, FoldKind, Query, RunnableKind, FilePosition}; | 11 | use ra_analysis::{FileId, FoldKind, Query, RunnableKind, FilePosition}; |
12 | use ra_syntax::{TextUnit, text_utils::intersect}; | 12 | use ra_syntax::{TextUnit, text_utils::intersect}; |
@@ -475,7 +475,7 @@ pub fn handle_signature_help( | |||
475 | .params | 475 | .params |
476 | .iter() | 476 | .iter() |
477 | .map(|param| ParameterInformation { | 477 | .map(|param| ParameterInformation { |
478 | label: param.clone(), | 478 | label: ParameterLabel::Simple(param.clone()), |
479 | documentation: None, | 479 | documentation: None, |
480 | }) | 480 | }) |
481 | .collect(); | 481 | .collect(); |