aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop/handlers.rs
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/src/main_loop/handlers.rs
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/src/main_loop/handlers.rs')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index 5b64b27cd..409583634 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -648,7 +648,6 @@ pub fn handle_code_action(
648 diagnostics: None, 648 diagnostics: None,
649 edit: None, 649 edit: None,
650 command: Some(command), 650 command: Some(command),
651 is_preferred: None,
652 }; 651 };
653 res.push(action.into()); 652 res.push(action.into());
654 } 653 }
@@ -671,7 +670,6 @@ pub fn handle_code_action(
671 diagnostics: None, 670 diagnostics: None,
672 edit: None, 671 edit: None,
673 command: Some(command), 672 command: Some(command),
674 is_preferred: None,
675 }; 673 };
676 res.push(action.into()); 674 res.push(action.into());
677 } 675 }
@@ -830,10 +828,9 @@ pub fn publish_diagnostics(
830 source: Some("rust-analyzer".to_string()), 828 source: Some("rust-analyzer".to_string()),
831 message: d.message, 829 message: d.message,
832 related_information: None, 830 related_information: None,
833 tags: None,
834 }) 831 })
835 .collect(); 832 .collect();
836 Ok(req::PublishDiagnosticsParams { uri, diagnostics, version: None }) 833 Ok(req::PublishDiagnosticsParams { uri, diagnostics })
837} 834}
838 835
839pub fn publish_decorations( 836pub fn publish_decorations(