emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot add568b 28/54: Fix #357: allow non-standard keys


From: João Távora
Subject: [elpa] externals/eglot add568b 28/54: Fix #357: allow non-standard keys in textDocument/publishDiagnostics.
Date: Thu, 16 Apr 2020 05:31:49 -0400 (EDT)

branch: externals/eglot
commit add568b6afab39410229e5a003e648a7f8ba0e31
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Fix #357: allow non-standard keys in textDocument/publishDiagnostics.
    
    * eglot.el (eglot-handle-notification): Allow other keys for
    textDocument/publishDiagnostics.
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index b3a7f51..74f0669 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1470,7 +1470,8 @@ COMMAND is a symbol naming the command."
   "Handle notification telemetry/event") ;; noop, use events buffer
 
 (cl-defmethod eglot-handle-notification
-  (server (_method (eql textDocument/publishDiagnostics)) &key uri diagnostics)
+  (server (_method (eql textDocument/publishDiagnostics)) &key uri diagnostics
+          &allow-other-keys) ; FIXME: doesn't respect `eglot-strict-mode'
   "Handle notification publishDiagnostics"
   (if-let ((buffer (find-buffer-visiting (eglot--uri-to-path uri))))
       (with-current-buffer buffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]