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/ra_lsp_server/Cargo.toml | 2 +- crates/ra_lsp_server/src/main_loop/handlers.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_lsp_server') 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