emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 1.3 3082a85 02/26: Fix #164: CodeAction command can be a Command


From: Christian Johansson
Subject: [elpa] 1.3 3082a85 02/26: Fix #164: CodeAction command can be a Command object (#165)
Date: Thu, 29 Apr 2021 15:09:12 -0400 (EDT)

tag: 1.3
commit 3082a85c10f863d90005770b822d15bf18cdf6fa
Author: mkcms <k.michal@zoho.com>
Commit: João Távora <joaotavora@gmail.com>

    Fix #164: CodeAction command can be a Command object (#165)
    
    * eglot.el (eglot-code-actions): Handle case when the :command field
      is not a string.
---
 eglot.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 4996f5b..bc89cd2 100644
--- a/eglot.el
+++ b/eglot.el
@@ -2011,7 +2011,12 @@ If SKIP-SIGNATURE, don't try to send 
textDocument/signatureHelp."
       (when edit
         (eglot--apply-workspace-edit edit))
       (when command
-        (eglot-execute-command server (intern command) arguments)))))
+        (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))))))))
 
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]