From 78102bc38ad796b92e03305af7510074b2ba1476 Mon Sep 17 00:00:00 2001 From: Phillip Dixon Date: Mon, 20 Aug 2018 21:21:51 +1200 Subject: [PATCH] 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 --- lisp/progmodes/eglot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2