aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop/handlers.rs
diff options
context:
space:
mode:
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(