From 084970d188d0adf6c96f93c852caee6088432416 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sat, 30 Nov 2019 00:16:12 +0000 Subject: [PATCH] Allow non-standard keys in textdocument/publishdiagnostics. * 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index b3a7f518267..74f06699f23 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/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 -- 2.39.2