Skip to content

Commit a31dfc1

Browse files
authored
build-workspace-configuration-response: Work with versioned section names. (#2258)
Fixes #2232
1 parent 05cbb94 commit a31dfc1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lsp-mode.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5889,7 +5889,11 @@ PARAMS are the `workspace/configuration' request params"
58895889
((<= path-parts-len 1)
58905890
(apply 'ht-get* `(,(lsp-configuration-section section?) ,@path-parts)))
58915891
((> path-parts-len 1)
5892-
(apply 'ht-get* `(,(lsp-configuration-section path-without-last) ,@path-parts)))))))
5892+
(when-let ((section (lsp-configuration-section path-without-last))
5893+
(keys path-parts))
5894+
(while (and keys section)
5895+
(setf section (ht-get section (pop keys))))
5896+
section))))))
58935897
(apply #'vector)))
58945898

58955899
(defun lsp--send-request-response (workspace recv-time request response)

0 commit comments

Comments
 (0)