aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/tests/heavy_tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/tests/heavy_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());