Work around jdt-ls not following the spec

This commit is contained in:
Charlotte Van Petegem 2023-02-15 13:44:06 +01:00
parent d6f86b1cd3
commit 21c3f1ef30
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -40,6 +40,13 @@
"SPC F" '(eglot-format :which-key "Format buffer")
"SPC r" '(eglot-rename :which-key "Rename symbol")
)
:config
;;; eclipse-jdt breaks the spec which in turn breaks code actions
;;; This behaviour can't be disabled and needs to be worked around
(cl-defmethod eglot-execute-command
(_server (_cmd (eql java.apply.workspaceEdit)) arguments)
"Eclipse JDT breaks spec and replies with edits as arguments."
(mapc #'eglot--apply-workspace-edit arguments))
)
;; Forth syntax support