]> git.eshelyaron.com Git - emacs.git/commitdiff
#fix 608: fix bug in eglot-code-actions
authorJoão Távora <joaotavora@gmail.com>
Fri, 29 Jan 2021 16:27:55 +0000 (16:27 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 29 Jan 2021 16:27:55 +0000 (16:27 +0000)
Suggested by GitHub user "vconcat".

* eglot.el (eglot-code-actions): Use a vector for transmitting
action-kind.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/606

lisp/progmodes/eglot.el

index b5f6e6f73a1fdf7593e4db2bb8c541ed8936a56b..98e0bcf14fa869094146b45f5b9bb57647ff57fa 100644 (file)
@@ -2554,7 +2554,7 @@ at point.  With prefix argument, prompt for ACTION-KIND."
                                when (cdr (assoc 'eglot-lsp-diag
                                                 (eglot--diag-data diag)))
                                collect it)]
-                   ,@(when action-kind `(:only ,action-kind))))))
+                   ,@(when action-kind `(:only [,action-kind]))))))
          (menu-items
           (or (cl-loop for action across actions
                        ;; Do filtering ourselves, in case the `:only'