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

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

[elpa] 1.2 97b9c06 065/101: Override eglot-execute-command for eclipse.j


From: Christian Johansson
Subject: [elpa] 1.2 97b9c06 065/101: Override eglot-execute-command for eclipse.jdt.ls server
Date: Thu, 29 Apr 2021 15:09:02 -0400 (EDT)

tag: 1.2
commit 97b9c068659fe97c9f9642317de410359507974d
Author: MichaƂ K <k.michal@zoho.com>
Commit: mkcms <k.michal@zoho.com>

    Override eglot-execute-command for eclipse.jdt.ls server
    
    * eglot.el (eglot-execute-command eglot-eclipse-jdt): New defmethod.
---
 eglot.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eglot.el b/eglot.el
index daae454..a23e73d 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1984,6 +1984,11 @@ If SKIP-SIGNATURE, don't try to send 
textDocument/signatureHelp."
                   "-configuration" config
                   "-data" workspace)))))
 
+(cl-defmethod eglot-execute-command
+  ((_server eglot-eclipse-jdt) (_cmd (eql java.apply.workspaceEdit)) arguments)
+  "Eclipse JDT breaks spec and replies with edits as arguments."
+  (mapc #'eglot--apply-workspace-edit arguments))
+
 
 ;; FIXME: A horrible hack of Flymake's insufficient API that must go
 ;; into Emacs master, or better, 26.2



reply via email to

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