emacs-diffs
[Top][All Lists]
Advanced

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

feature/eglot2emacs 5e9d78f9cf 068/120: Ensure non-null :settings param


From: João Távora
Subject: feature/eglot2emacs 5e9d78f9cf 068/120: Ensure non-null :settings param in didchangeconfiguration notif
Date: Thu, 20 Oct 2022 07:16:56 -0400 (EDT)

branch: feature/eglot2emacs
commit 5e9d78f9cf1ec4da5f24ab32d038d0d67566fbc6
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Ensure non-null :settings param in didchangeconfiguration notif
    
    * eglot.el (eglot-signal-didChangeConfiguration): Use eglot--{}
    
    GitHub-reference: fix https://github.com/joaotavora/eglot/issues/936
---
 lisp/progmodes/eglot.el | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 348ae4b42c..fd82b76c5b 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -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)



reply via email to

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