aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-11 16:37:32 +0000
committerAleksey Kladov <[email protected]>2019-12-11 16:37:32 +0000
commit58768b2a6343451bae8c4efb93ce7b1d598c914d (patch)
treeb5a6ae0efb25d4f9a4cb69e626d0600838ccd842 /crates/ra_lsp_server/tests
parent712700d8e027b108f9c4f8fa9acc2f25e453b6d1 (diff)
Revert "Support LSP 3.15"
This reverts commit fcccf8ec59420d20edc53f7d787f2412e297f5fe. This causes rust-analyzer die immediatelly after startup
Diffstat (limited to 'crates/ra_lsp_server/tests')
-rw-r--r--crates/ra_lsp_server/tests/heavy_tests/main.rs21
1 files changed, 1 insertions, 20 deletions
diff --git a/crates/ra_lsp_server/tests/heavy_tests/main.rs b/crates/ra_lsp_server/tests/heavy_tests/main.rs
index dff63a12d..cfbf16ea5 100644
--- a/crates/ra_lsp_server/tests/heavy_tests/main.rs
+++ b/crates/ra_lsp_server/tests/heavy_tests/main.rs
@@ -4,8 +4,7 @@ use std::{collections::HashMap, time::Instant};
4 4
5use lsp_types::{ 5use lsp_types::{
6 CodeActionContext, DidOpenTextDocumentParams, DocumentFormattingParams, FormattingOptions, 6 CodeActionContext, DidOpenTextDocumentParams, DocumentFormattingParams, FormattingOptions,
7 PartialResultParams, Position, Range, TextDocumentItem, TextDocumentPositionParams, 7 Position, Range, TextDocumentItem, TextDocumentPositionParams,
8 WorkDoneProgressParams,
9}; 8};
10use ra_lsp_server::req::{ 9use ra_lsp_server::req::{
11 CodeActionParams, CodeActionRequest, Completion, CompletionParams, DidOpenTextDocument, 10 CodeActionParams, CodeActionRequest, Completion, CompletionParams, DidOpenTextDocument,
@@ -49,8 +48,6 @@ use std::collections::Spam;
49 Position::new(0, 23), 48 Position::new(0, 23),
50 ), 49 ),
51 context: None, 50 context: None,
52 partial_result_params: PartialResultParams::default(),
53 work_done_progress_params: WorkDoneProgressParams::default(),
54 }); 51 });
55 assert!(format!("{}", res).contains("HashMap")); 52 assert!(format!("{}", res).contains("HashMap"));
56 eprintln!("completion took {:?}", completion_start.elapsed()); 53 eprintln!("completion took {:?}", completion_start.elapsed());
@@ -214,12 +211,8 @@ pub use std::collections::HashMap;
214 options: FormattingOptions { 211 options: FormattingOptions {
215 tab_size: 4, 212 tab_size: 4,
216 insert_spaces: false, 213 insert_spaces: false,
217 insert_final_newline: None,
218 trim_final_newlines: None,
219 trim_trailing_whitespace: None,
220 properties: HashMap::new(), 214 properties: HashMap::new(),
221 }, 215 },
222 work_done_progress_params: WorkDoneProgressParams::default(),
223 }, 216 },
224 json!([ 217 json!([
225 { 218 {
@@ -279,11 +272,7 @@ pub use std::collections::HashMap;
279 tab_size: 4, 272 tab_size: 4,
280 insert_spaces: false, 273 insert_spaces: false,
281 properties: HashMap::new(), 274 properties: HashMap::new(),
282 insert_final_newline: None,
283 trim_final_newlines: None,
284 trim_trailing_whitespace: None,
285 }, 275 },
286 work_done_progress_params: WorkDoneProgressParams::default(),
287 }, 276 },
288 json!([ 277 json!([
289 { 278 {
@@ -336,8 +325,6 @@ fn main() {}
336 text_document: server.doc_id("src/lib.rs"), 325 text_document: server.doc_id("src/lib.rs"),
337 range: Range::new(Position::new(0, 4), Position::new(0, 7)), 326 range: Range::new(Position::new(0, 4), Position::new(0, 7)),
338 context: empty_context(), 327 context: empty_context(),
339 partial_result_params: PartialResultParams::default(),
340 work_done_progress_params: WorkDoneProgressParams::default(),
341 }, 328 },
342 json!([ 329 json!([
343 { 330 {
@@ -369,8 +356,6 @@ fn main() {}
369 text_document: server.doc_id("src/lib.rs"), 356 text_document: server.doc_id("src/lib.rs"),
370 range: Range::new(Position::new(2, 4), Position::new(2, 7)), 357 range: Range::new(Position::new(2, 4), Position::new(2, 7)),
371 context: empty_context(), 358 context: empty_context(),
372 partial_result_params: PartialResultParams::default(),
373 work_done_progress_params: WorkDoneProgressParams::default(),
374 }, 359 },
375 json!([]), 360 json!([]),
376 ); 361 );
@@ -419,8 +404,6 @@ fn main() {{}}
419 text_document: server.doc_id("src/lib.rs"), 404 text_document: server.doc_id("src/lib.rs"),
420 range: Range::new(Position::new(0, 4), Position::new(0, 7)), 405 range: Range::new(Position::new(0, 4), Position::new(0, 7)),
421 context: empty_context(), 406 context: empty_context(),
422 partial_result_params: PartialResultParams::default(),
423 work_done_progress_params: WorkDoneProgressParams::default(),
424 }, 407 },
425 json!([ 408 json!([
426 { 409 {
@@ -452,8 +435,6 @@ fn main() {{}}
452 text_document: server.doc_id("src/lib.rs"), 435 text_document: server.doc_id("src/lib.rs"),
453 range: Range::new(Position::new(2, 4), Position::new(2, 7)), 436 range: Range::new(Position::new(2, 4), Position::new(2, 7)),
454 context: empty_context(), 437 context: empty_context(),
455 partial_result_params: PartialResultParams::default(),
456 work_done_progress_params: WorkDoneProgressParams::default(),
457 }, 438 },
458 json!([]), 439 json!([]),
459 ); 440 );