From bdf852d4bc8931346ba87a71a2d5c08617b26a59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 25 May 2023 14:29:45 +0100 Subject: [PATCH] Eglot: fix execution of CodeAction commands Reported in https://github.com/joaotavora/eglot/discussions/1225. * lisp/progmodes/eglot.el (eglot-execute): Fix typo. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index cd5831efc48..0140db0c4b3 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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'." -- 2.39.2