From 64ecba4f15bf178fb795174cffc96dda2d46a8d1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 17 Aug 2019 21:34:31 +0300 Subject: update lsp --- crates/ra_lsp_server/src/main_loop/handlers.rs | 3 +-- crates/ra_lsp_server/src/req.rs | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/ra_lsp_server/src') diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index a3d3f167c..b465707f8 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -16,7 +16,6 @@ use ra_syntax::{AstNode, SyntaxKind, TextRange, TextUnit}; use rustc_hash::FxHashMap; use serde::{Deserialize, Serialize}; use serde_json::to_value; -use url_serde::Ser; use crate::{ cargo_target_spec::{runnable_args, CargoTargetSpec}, @@ -736,7 +735,7 @@ pub fn handle_code_lens_resolve(world: WorldSnapshot, code_lens: CodeLens) -> Re title, command: "rust-analyzer.showReferences".into(), arguments: Some(vec![ - to_value(&Ser::new(&lens_params.text_document.uri)).unwrap(), + to_value(&lens_params.text_document.uri).unwrap(), to_value(code_lens.range.start).unwrap(), to_value(locations).unwrap(), ]), diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index b2f3c509d..1b23f0c3d 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs @@ -1,7 +1,6 @@ use lsp_types::{Location, Position, Range, TextDocumentIdentifier, Url}; use rustc_hash::FxHashMap; use serde::{Deserialize, Serialize}; -use url_serde; pub use lsp_types::{ notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens, @@ -98,7 +97,6 @@ impl Notification for PublishDecorations { #[derive(Serialize, Debug)] #[serde(rename_all = "camelCase")] pub struct PublishDecorationsParams { - #[serde(with = "url_serde")] pub uri: Url, pub decorations: Vec, } -- cgit v1.2.3