From 0f7a714c6306e545157f3ef94fe8db5957007efa Mon Sep 17 00:00:00 2001 From: kjeremy Date: Mon, 4 Feb 2019 10:26:43 -0500 Subject: Add comment --- crates/ra_lsp_server/src/main_loop/handlers.rs | 4 ++++ 1 file changed, 4 insertions(+) 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( for source_edit in assists.chain(fixes) { let title = source_edit.label.clone(); let edit = source_edit.try_conv_with(&world)?; + + // We cannot use the 'editor.action.showReferences' command directly + // because that command requires vscode types which we convert in the handler + // on the client side. let cmd = Command { title, command: "rust-analyzer.applySourceChange".to_string(), -- cgit v1.2.3