aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorkjeremy <[email protected]>2019-02-04 15:26:43 +0000
committerkjeremy <[email protected]>2019-02-04 15:26:43 +0000
commit0f7a714c6306e545157f3ef94fe8db5957007efa (patch)
treefc1450350a842925120a7d0485f96eb973f54b08 /crates
parent6ac4cca6c1fc188ae0fda62fb81a9855a51b7530 (diff)
Add comment
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index 946992e15..9e2cc8ffc 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -598,6 +598,10 @@ pub fn handle_code_action(
598 for source_edit in assists.chain(fixes) { 598 for source_edit in assists.chain(fixes) {
599 let title = source_edit.label.clone(); 599 let title = source_edit.label.clone();
600 let edit = source_edit.try_conv_with(&world)?; 600 let edit = source_edit.try_conv_with(&world)?;
601
602 // We cannot use the 'editor.action.showReferences' command directly
603 // because that command requires vscode types which we convert in the handler
604 // on the client side.
601 let cmd = Command { 605 let cmd = Command {
602 title, 606 title,
603 command: "rust-analyzer.applySourceChange".to_string(), 607 command: "rust-analyzer.applySourceChange".to_string(),