]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow non-standard keys in textdocument/publishdiagnostics.
authorJoão Távora <joaotavora@gmail.com>
Sat, 30 Nov 2019 00:16:12 +0000 (00:16 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sun, 8 Dec 2019 21:29:58 +0000 (22:29 +0100)
* eglot.el (eglot-handle-notification): Allow other keys for
textDocument/publishDiagnostics.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/357

lisp/progmodes/eglot.el

index b3a7f518267b23a854e8d33129e81ac7d6430ad6..74f06699f2340e3aaae31d6f50d151b31577fee5 100644 (file)
@@ -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