From dc6dd9ceb1b54060972370d5929c8d0cfdcbf7bb Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 22 May 2019 14:11:41 +0800 Subject: [PATCH] Use lsp-workspace-folders-open instead of lsp-workspace-folders-switch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘lsp-workspace-folders-switch’ is obsolete in lsp-mode 6.1. --- doom-modeline-segments.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 2f85312..b51a956 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -150,7 +150,7 @@ (declare-function lsp-describe-session 'lsp-mode) (declare-function lsp-restart-workspace 'lsp-mode) (declare-function lsp-shutdown-workspace 'lsp-mode) -(declare-function lsp-workspace-folders-switch 'lsp-mode) +(declare-function lsp-workspace-folders-open 'lsp-mode) (declare-function lsp-workspaces 'lsp-mode) (declare-function magit-toplevel 'magit-git) (declare-function mc/num-cursors 'multiple-cursors-core) @@ -1643,7 +1643,7 @@ mouse-1: Reload to start server") (if workspaces (progn (define-key map [mode-line C-mouse-1] - #'lsp-workspace-folders-switch) + #'lsp-workspace-folders-open) (define-key map [mode-line mouse-1] #'lsp-describe-session) (define-key map [mode-line mouse-2]