]> git.lizzy.rs Git - rust.git/commitdiff
Add comment
authorkjeremy <kjeremy@gmail.com>
Mon, 4 Feb 2019 15:26:43 +0000 (10:26 -0500)
committerkjeremy <kjeremy@gmail.com>
Mon, 4 Feb 2019 15:26:43 +0000 (10:26 -0500)
crates/ra_lsp_server/src/main_loop/handlers.rs

index 946992e1582e8757d2847c8895d7f4fcfebb3905..9e2cc8ffcce8c5f09c1c7af18f7ccbcbec7266bd 100644 (file)
@@ -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(),