From c726fc7a9ccc857aefc97282b30eef94266c2f93 Mon Sep 17 00:00:00 2001 From: Michal Krzywkowski Date: Thu, 9 Aug 2018 15:25:58 +0200 Subject: [PATCH] Override eglot-execute-command for eclipse.jdt.ls server * eglot.el (eglot-execute-command eglot-eclipse-jdt): New defmethod. --- lisp/progmodes/eglot.el | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2