]> git.eshelyaron.com Git - emacs.git/commitdiff
Ensure non-null :settings param in didchangeconfiguration notif
authorJoão Távora <joaotavora@gmail.com>
Wed, 27 Apr 2022 10:11:52 +0000 (11:11 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 27 Apr 2022 10:11:52 +0000 (11:11 +0100)
* eglot.el (eglot-signal-didChangeConfiguration): Use eglot--{}

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

lisp/progmodes/eglot.el

index 348ae4b42c93d4bf1da0322ddaca100630f1e045..fd82b76c5b9eeb37848a82ef44e22990ed2838c5 100644 (file)
@@ -2198,11 +2198,12 @@ When called interactively, use the currently active server"
    server :workspace/didChangeConfiguration
    (list
     :settings
-    (cl-loop for (section . v) in eglot-workspace-configuration
-             collect (if (keywordp section)
-                         section
-                       (intern (format ":%s" section)))
-             collect v))))
+    (or (cl-loop for (section . v) in eglot-workspace-configuration
+                 collect (if (keywordp section)
+                             section
+                           (intern (format ":%s" section)))
+                 collect v)
+        eglot--{}))))
 
 (cl-defmethod eglot-handle-request
   (server (_method (eql workspace/configuration)) &key items)