]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: fix execution of CodeAction commands
authorJoão Távora <capitaomorte@archlinux2022.linuxvmimages.local>
Thu, 25 May 2023 13:29:45 +0000 (14:29 +0100)
committerJoão Távora <capitaomorte@archlinux2022.linuxvmimages.local>
Thu, 25 May 2023 13:29:45 +0000 (14:29 +0100)
Reported in
https://github.com/joaotavora/eglot/discussions/1225.

* lisp/progmodes/eglot.el (eglot-execute): Fix typo.

lisp/progmodes/eglot.el

index cd5831efc48b090ed29d98e5ea7787179b9bb928..0140db0c4b3f162630f3574814c7ed1cc8660a57 100644 (file)
@@ -741,7 +741,7 @@ ACTION is an LSP object of either `CodeAction' or `Command' type."
      (((Command)) (eglot--request server :workspace/executeCommand action))
      (((CodeAction) edit command)
       (when edit (eglot--apply-workspace-edit edit))
-      (when command (eglot--request server :workspace/executeCommand action))))))
+      (when command (eglot--request server :workspace/executeCommand command))))))
 
 (cl-defgeneric eglot-initialization-options (server)
   "JSON object to send under `initializationOptions'."