tag: 1.2
commit d54e4941ebdc8d03c25cb1d6155b3e13966d4d3d
Author: Phillip Dixon <[email protected]>
Commit: João Távora <[email protected]>

    Ignore extra keys in textDocument/publishDiagnostics (#81)
    
    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
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 4f72644..eba1b1d 100644
--- a/eglot.el
+++ b/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

Reply via email to