From 7d506b0cd5a9afe68b66d6553520074d9c06c8ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 1 Sep 2020 19:10:55 +0100 Subject: [PATCH] Don't send json null (elisp nil) down the wire * eglot.el (eglot-initialization-options) (eglot-client-capabilities): Use eglot--{}, not nil. GitHub-reference: per https://github.com/joaotavora/eglot/issues/300 --- lisp/progmodes/eglot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index c752322b58a..60bc56e8aa6 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -508,7 +508,7 @@ treated as in `eglot-dbind'." (cl-defgeneric eglot-initialization-options (server) "JSON object to send under `initializationOptions'" - (:method (_s) nil)) ; blank default + (:method (_s) eglot--{})) ; blank default (cl-defgeneric eglot-register-capability (server method id &rest params) "Ask SERVER to register capability METHOD marked with ID." @@ -581,7 +581,7 @@ treated as in `eglot-dbind'." :rangeFormatting `(:dynamicRegistration :json-false) :rename `(:dynamicRegistration :json-false) :publishDiagnostics `(:relatedInformation :json-false)) - :experimental (list)))) + :experimental eglot--{}))) (defclass eglot-lsp-server (jsonrpc-process-connection) ((project-nickname -- 2.39.2