From 6ae6ce8b922bba07219bb8e10b67cc81a4703995 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 23 Nov 2018 18:12:14 +0000 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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))))) -- 2.39.2