aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-11 17:27:34 +0000
committerAleksey Kladov <[email protected]>2019-12-11 17:27:34 +0000
commit1e0bf205eff81f04c0e1e6c208c3489327520c3f (patch)
treef6f2269e3669973c7a6e36e76eed2ba442f051fd /crates/ra_lsp_server/src/main_loop
parenteb5cd34e8f22c6e474ef0177083089f7a56ef74c (diff)
Revert "Support LSP 3.15"
This reverts commit 712700d8e027b108f9c4f8fa9acc2f25e453b6d1.
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-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(