diff options
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 4 |
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(), |