tag: 1.2
commit 97b9c068659fe97c9f9642317de410359507974d
Author: MichaƂ K <[email protected]>
Commit: mkcms <[email protected]>

    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