From d828bd794b651f34e9f311d02173c26bf9481b63 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 8 Dec 2020 20:56:43 -0500 Subject: LSP 3.16 - Released --- crates/rust-analyzer/Cargo.toml | 2 +- crates/rust-analyzer/src/caps.rs | 3 ++- crates/rust-analyzer/src/to_proto.rs | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'crates') diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index 039976e4b..0b4d3f4eb 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml @@ -21,7 +21,7 @@ env_logger = { version = "0.8.1", default-features = false } itertools = "0.9.0" jod-thread = "0.1.0" log = "0.4.8" -lsp-types = { version = "0.85.0", features = ["proposed"] } +lsp-types = { version = "0.86.0", features = ["proposed"] } parking_lot = "0.11.0" pico-args = "0.3.1" oorandom = "11.1.2" diff --git a/crates/rust-analyzer/src/caps.rs b/crates/rust-analyzer/src/caps.rs index 5e4c22bc5..de5eb93b5 100644 --- a/crates/rust-analyzer/src/caps.rs +++ b/crates/rust-analyzer/src/caps.rs @@ -64,7 +64,7 @@ pub fn server_capabilities(client_caps: &ClientCapabilities) -> ServerCapabiliti prepare_provider: Some(true), work_done_progress_options: WorkDoneProgressOptions { work_done_progress: None }, })), - on_type_rename_provider: None, + linked_editing_range_provider: None, document_link_provider: None, color_provider: None, execute_command_provider: None, @@ -83,6 +83,7 @@ pub fn server_capabilities(client_caps: &ClientCapabilities) -> ServerCapabiliti } .into(), ), + moniker_provider: None, experimental: Some(json!({ "joinLines": true, "ssr": true, diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 715f8927a..72f77a016 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -633,7 +633,7 @@ pub(crate) fn resource_op( lsp_types::ResourceOp::Create(lsp_types::CreateFile { uri, options: None, - annotation: None, + annotation_id: None, }) } FileSystemEdit::MoveFile { src, dst } => { @@ -643,7 +643,7 @@ pub(crate) fn resource_op( old_uri, new_uri, options: None, - annotation: None, + annotation_id: None, }) } } @@ -708,6 +708,7 @@ impl From for lsp_types::WorkspaceEdit { .collect(), ) }), + change_annotations: None, } } } -- cgit v1.2.3