Skip to content

Commit

Permalink
Revert "Per joaotavora#590: Handle keywords in nested maps in workspa…
Browse files Browse the repository at this point in the history
…ce configuration"

This reverts commit 127234d.
  • Loading branch information
fbergroth committed Jan 10, 2022
1 parent 127234d commit 1be4c3c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -2002,15 +2002,6 @@ that can be converted to JSON.")
;;;###autoload
(put 'eglot-workspace-configuration 'safe-local-variable 'listp)

(defun eglot--dump-configuration (conf)
(cl-loop for (section . v) in conf
collect (if (keywordp section)
section
(intern (format ":%s" section)))
collect (if (consp v)
(eglot--dump-configuration v)
v)))

(defun eglot-signal-didChangeConfiguration (server)
"Send a `:workspace/didChangeConfiguration' signal to SERVER.
When called interactively, use the currently active server"
Expand All @@ -2019,7 +2010,11 @@ When called interactively, use the currently active server"
server :workspace/didChangeConfiguration
(list
:settings
(eglot--dump-configuration eglot-workspace-configuration))))
(cl-loop for (section . v) in eglot-workspace-configuration
collect (if (keywordp section)
section
(intern (format ":%s" section)))
collect v))))

(cl-defmethod eglot-handle-request
(server (_method (eql workspace/configuration)) &key items)
Expand Down

0 comments on commit 1be4c3c

Please sign in to comment.