From: Michal Krzywkowski Date: Thu, 9 Aug 2018 13:25:58 +0000 (+0200) Subject: Override eglot-execute-command for eclipse.jdt.ls server X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~419 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c726fc7a9ccc857aefc97282b30eef94266c2f93;p=emacs.git Override eglot-execute-command for eclipse.jdt.ls server * eglot.el (eglot-execute-command eglot-eclipse-jdt): New defmethod. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index daae4542295..a23e73df835 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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