From 93cf39d96836056d63401099a98e7a511231a0d9 Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Wed, 19 Dec 2018 17:32:44 -0500 Subject: Bump languageserver-types to 0.53.0 to support LSP 3.14.0 See: https://microsoft.github.io/language-server-protocol/specification#version_3_14_0 --- crates/gen_lsp_server/Cargo.toml | 2 +- crates/ra_lsp_server/Cargo.toml | 2 +- crates/ra_lsp_server/src/main_loop/handlers.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates') 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" description = "Generic LSP server scaffold." [dependencies] -languageserver-types = "0.51.0" +languageserver-types = "0.53.0" log = "0.4.3" failure = "0.1.2" 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" flexi_logger = "0.10.0" log = "0.4.3" url_serde = "0.2.0" -languageserver-types = "0.51.0" +languageserver-types = "0.53.0" walkdir = "2.2.0" im = "12.0.0" 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::{ DiagnosticSeverity, DocumentSymbol, Documentation, FoldingRange, FoldingRangeKind, FoldingRangeParams, InsertTextFormat, Location, MarkupContent, MarkupKind, MarkedString, Position, PrepareRenameResponse, RenameParams, SymbolInformation, TextDocumentIdentifier, TextEdit, - WorkspaceEdit, ParameterInformation, SignatureInformation, Hover, HoverContents, + WorkspaceEdit, ParameterInformation, ParameterLabel, SignatureInformation, Hover, HoverContents, }; use ra_analysis::{FileId, FoldKind, Query, RunnableKind, FilePosition}; use ra_syntax::{TextUnit, text_utils::intersect}; @@ -475,7 +475,7 @@ pub fn handle_signature_help( .params .iter() .map(|param| ParameterInformation { - label: param.clone(), + label: ParameterLabel::Simple(param.clone()), documentation: None, }) .collect(); -- cgit v1.2.3