[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))))))))
- [elpa] 1.3 dadc5a2 15/26: Fix #159: Properly clear old diagnostics when making new ones, (continued)
- [elpa] 1.3 dadc5a2 15/26: Fix #159: Properly clear old diagnostics when making new ones, Christian Johansson, 2021/04/29
- [elpa] 1.3 e22d4d3 09/26: Simplify interface of eglot--dbind macro, Christian Johansson, 2021/04/29
- [elpa] 1.3 8c71a1a 18/26: Per #173: fix bug introduced by previous fix, Christian Johansson, 2021/04/29
- [elpa] 1.3 84a271c 08/26: Robustify tests against (M)ELPA eglot installations, Christian Johansson, 2021/04/29
- [elpa] 1.3 0f74616 07/26: Touch up last commit, Christian Johansson, 2021/04/29
- [elpa] 1.3 dc84ff6 06/26: * eglot.el (eglot--current-column): New helper., Christian Johansson, 2021/04/29
- [elpa] 1.3 5595a75 12/26: Fix #116, #150: don't break in indirect buffers, Christian Johansson, 2021/04/29
- [elpa] 1.3 72e06ea 14/26: Use javascript-typescript-langserver for typescript-mode (#174), Christian Johansson, 2021/04/29
- [elpa] 1.3 4fbbe9c 19/26: Per #173: adjust previous fix, Christian Johansson, 2021/04/29
- [elpa] 1.3 8a2008f 21/26: Warn about suspicious interface usage at compile-time, Christian Johansson, 2021/04/29
- [elpa] 1.3 3082a85 02/26: Fix #164: CodeAction command can be a Command object (#165),
Christian Johansson <=
- [elpa] 1.3 7d41833 05/26: Per #52, #127: Improve performance of xref summary line collection, Christian Johansson, 2021/04/29
- [elpa] 1.3 9e7f370 11/26: Use eglot--dbind for destructuring, Christian Johansson, 2021/04/29
- [elpa] 1.3 c3d2000 26/26: * eglot.el (Version): Bump to 1.3, Christian Johansson, 2021/04/29
- [elpa] 1.3 dfa648d 24/26: Be lenient by default to unknown methods or notifications, Christian Johansson, 2021/04/29
- [elpa] 1.3 0c36b00 25/26: Close #180: Add preamble to comparison to lsp-mode.el, Christian Johansson, 2021/04/29
- [elpa] 1.3 f0bdf4c 20/26: Fix #144: Use eglot--dbind and eglot--lambda throughout, Christian Johansson, 2021/04/29
- [elpa] 1.3 0005dc8 22/26: Scratch/use elpa flymake (#178), Christian Johansson, 2021/04/29
- [elpa] 1.3 3a56470 17/26: Fix #164: handle CodeAction/Command polymorphism with eglot--dcase, Christian Johansson, 2021/04/29
- [elpa] 1.3 6643310 16/26: Per #173: robustify previous fix against non-standard insertion bindings, Christian Johansson, 2021/04/29