aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/tests
diff options
context:
space:
mode:
authorJeremy Kolb <[email protected]>2019-07-07 19:13:13 +0100
committerJeremy Kolb <[email protected]>2019-07-07 19:13:13 +0100
commit3f44aaf363be0669e618a8340fd91b47ae6344c4 (patch)
tree3cbe580bf8cac059a2b87687a1a7b48dcd1779e5 /crates/ra_lsp_server/tests
parent1b38ca3b8739230af1cc69884b5b11650b5fcb46 (diff)
use flatten branch of lsp-types
Diffstat (limited to 'crates/ra_lsp_server/tests')
-rw-r--r--crates/ra_lsp_server/tests/heavy_tests/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/ra_lsp_server/tests/heavy_tests/main.rs b/crates/ra_lsp_server/tests/heavy_tests/main.rs
index d271b02fc..451be32a8 100644
--- a/crates/ra_lsp_server/tests/heavy_tests/main.rs
+++ b/crates/ra_lsp_server/tests/heavy_tests/main.rs
@@ -37,9 +37,11 @@ use std::collections::Spam;
37 eprintln!("loading took {:?}", project_start.elapsed()); 37 eprintln!("loading took {:?}", project_start.elapsed());
38 let completion_start = Instant::now(); 38 let completion_start = Instant::now();
39 let res = server.send_request::<Completion>(CompletionParams { 39 let res = server.send_request::<Completion>(CompletionParams {
40 text_document: server.doc_id("src/lib.rs"), 40 text_document_position: TextDocumentPositionParams::new(
41 server.doc_id("src/lib.rs"),
42 Position::new(0, 23),
43 ),
41 context: None, 44 context: None,
42 position: Position::new(0, 23),
43 }); 45 });
44 assert!(format!("{}", res).contains("HashMap")); 46 assert!(format!("{}", res).contains("HashMap"));
45 eprintln!("completion took {:?}", completion_start.elapsed()); 47 eprintln!("completion took {:?}", completion_start.elapsed());