From: Phillip Dixon Date: Mon, 20 Aug 2018 09:21:51 +0000 (+1200) Subject: Ignore extra keys in textdocument/publishdiagnostics () X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~437 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=78102bc38ad796b92e03305af7510074b2ba1476;p=emacs.git Ignore extra keys in textdocument/publishdiagnostics () Accoding to the "discussion" in https://reviews.llvm.org/D50571, it was deemed sufficient that VSCode is fine with the non-standard extension -- jt Copyright-paperwork-exempt: yes * eglot.el (eglot-handle-notification): Add &allow-other-keys GitHub-reference: https://github.com/joaotavora/eglot/issues/81 --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 4f726440e29..eba1b1d1cf9 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1036,7 +1036,8 @@ COMMAND is a symbol naming the command." (cl-loop for diag-spec across diagnostics collect (cl-destructuring-bind (&key range ((:severity sev)) _group - _code source message) + _code source message + &allow-other-keys) diag-spec (setq message (concat source ": " message)) (pcase-let