File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1237,15 +1237,18 @@ With prefix 2 show both."
12371237 folders))
12381238
12391239
1240- (defvar lsp-treemacs--current-project-root nil )
1240+ (defvar lsp-treemacs--current-project-roots nil )
12411241
12421242(defun lsp-treemacs-errors-list--refresh ()
1243+ (message " ->%s " lsp-treemacs--current-project-roots)
12431244 (lsp-treemacs-render
1244- (if (and lsp-treemacs--current-project-root
1245+ (if (and lsp-treemacs--current-project-roots
12451246 lsp-treemacs-error-list-current-project-only)
12461247 (->> (lsp-session)
12471248 (lsp-session-folders)
1248- (--filter (f-equal-p lsp-treemacs--current-project-root it))
1249+ (-filter (lambda (folder )
1250+ (--any (f-equal-p it folder)
1251+ lsp-treemacs--current-project-roots)))
12491252 (lsp-treemacs--build-error-list))
12501253 (->> (lsp-session)
12511254 (lsp-session-folders)
@@ -1258,9 +1261,7 @@ With prefix 2 show both."
12581261;;;### autoload
12591262(defun lsp-treemacs-errors-list ()
12601263 (interactive )
1261- (setq lsp-treemacs--current-project-root (-some-> (lsp-workspaces)
1262- cl-first
1263- (lsp--workspace-root)))
1264+ (setq lsp-treemacs--current-project-roots (-map #'lsp--workspace-root (lsp-workspaces)))
12641265 (-if-let (buffer (get-buffer lsp-treemacs-errors-buffer-name))
12651266 (progn
12661267 (select-window (display-buffer-in-side-window buffer '((side . bottom))))
You can’t perform that action at this time.
0 commit comments