]> git.eshelyaron.com Git - emacs.git/commitdiff
Override eglot-execute-command for eclipse.jdt.ls server
authorMichal Krzywkowski <k.michal@zoho.com>
Thu, 9 Aug 2018 13:25:58 +0000 (15:25 +0200)
committerMichal Krzywkowski <k.michal@zoho.com>
Thu, 18 Oct 2018 12:47:48 +0000 (14:47 +0200)
* eglot.el (eglot-execute-command eglot-eclipse-jdt): New defmethod.

lisp/progmodes/eglot.el

index daae45422955c2c93af04bd9e289b1257380f8cb..a23e73df83574e0ab5c6f5e7c107a93ced467e90 100644 (file)
@@ -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))
+
 \f
 ;; FIXME: A horrible hack of Flymake's insufficient API that must go
 ;; into Emacs master, or better, 26.2