]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "codeaction command can be a command object ()"
authorJoão Távora <joaotavora@gmail.com>
Fri, 23 Nov 2018 18:12:14 +0000 (18:12 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 23 Nov 2018 18:12:14 +0000 (18:12 +0000)
This reverts commit 1e7f94d75a30628be56ad00de8c6245f5f3e9fdf.

The spec doesn't define Command as implemented in the commit.

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

lisp/progmodes/eglot.el

index bc89cd28f3718b1a7884c50eaa745feff31be150..4996f5b639aa75c8d4d19d61e6ccc674b73f6b92 100644 (file)
@@ -2011,12 +2011,7 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp."
       (when edit
         (eglot--apply-workspace-edit edit))
       (when command
-        (cond ((stringp command)
-               (eglot-execute-command server (intern command) arguments))
-              ((listp command)
-               (eglot-execute-command server
-                                      (intern (plist-get command :command))
-                                      (plist-get command :arguments))))))))
+        (eglot-execute-command server (intern command) arguments)))))
 
 
 \f