Skip to content

Commit

Permalink
Capture lsp--cur-workspace in lsp-configure-buffer (emacs-lsp#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoncho authored Nov 11, 2020
1 parent 15be167 commit 936dd86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -3652,7 +3652,12 @@ in that particular folder."

(defun lsp-configure-buffer ()
"Configure LSP features for current buffer."
(let (lsp--cur-workspace)
;; make sure the core is running in the context of all available workspaces
;; to avoid misconfiguration in case we are running in `with-lsp-workspace' context
(let ((lsp--buffer-workspaces (cond
(lsp--buffer-workspaces)
(lsp--cur-workspace (list lsp--cur-workspace))))
lsp--cur-workspace)
(when lsp-auto-configure
(when (and lsp-enable-text-document-color
(lsp-feature? "textDocument/documentColor"))
Expand Down

0 comments on commit 936dd86

Please sign in to comment.