From: João Távora Date: Fri, 23 Nov 2018 18:12:14 +0000 (+0000) Subject: Revert "codeaction command can be a command object ()" X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~388 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ae6ce8b922bba07219bb8e10b67cc81a4703995;p=emacs.git Revert "codeaction command can be a command object ()" 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 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index bc89cd28f37..4996f5b639a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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)))))