aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop/handlers.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-08-17 20:23:16 +0100
committerGitHub <[email protected]>2019-08-17 20:23:16 +0100
commit2bac1bdf174a053f0727e982f0f92d068ef3c208 (patch)
tree77f7a2671785bf17fdb1dbadc329f859465d8c50 /crates/ra_lsp_server/src/main_loop/handlers.rs
parent5a2a97c7e8cfac690a00505d8644be30f7ee863a (diff)
parent64ecba4f15bf178fb795174cffc96dda2d46a8d1 (diff)
Merge #1695
1695: update lsp r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop/handlers.rs')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs3
1 files changed, 1 insertions, 2 deletions
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};
16use rustc_hash::FxHashMap; 16use rustc_hash::FxHashMap;
17use serde::{Deserialize, Serialize}; 17use serde::{Deserialize, Serialize};
18use serde_json::to_value; 18use serde_json::to_value;
19use url_serde::Ser;
20 19
21use crate::{ 20use crate::{
22 cargo_target_spec::{runnable_args, CargoTargetSpec}, 21 cargo_target_spec::{runnable_args, CargoTargetSpec},
@@ -736,7 +735,7 @@ pub fn handle_code_lens_resolve(world: WorldSnapshot, code_lens: CodeLens) -> Re
736 title, 735 title,
737 command: "rust-analyzer.showReferences".into(), 736 command: "rust-analyzer.showReferences".into(),
738 arguments: Some(vec![ 737 arguments: Some(vec![
739 to_value(&Ser::new(&lens_params.text_document.uri)).unwrap(), 738 to_value(&lens_params.text_document.uri).unwrap(),
740 to_value(code_lens.range.start).unwrap(), 739 to_value(code_lens.range.start).unwrap(),
741 to_value(locations).unwrap(), 740 to_value(locations).unwrap(),
742 ]), 741 ]),