]> git.eshelyaron.com Git - emacs.git/commitdiff
Ignore extra keys in textdocument/publishdiagnostics ()
authorPhillip Dixon <phillip.dixon@gmail.com>
Mon, 20 Aug 2018 09:21:51 +0000 (21:21 +1200)
committerJoão Távora <joaotavora@gmail.com>
Mon, 20 Aug 2018 09:21:51 +0000 (10:21 +0100)
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

index 4f726440e29609dee45fb9a378f9736647624036..eba1b1d1cf966da002511ba8da58566c81359a10 100644 (file)
@@ -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