Work around jdt-ls not following the spec
This commit is contained in:
parent
d6f86b1cd3
commit
21c3f1ef30
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue