Use lsp-workspace-folders-open instead of lsp-workspace-folders-switch.

‘lsp-workspace-folders-switch’ is obsolete in lsp-mode 6.1.
This commit is contained in:
Vincent Zhang 2019-05-22 14:11:41 +08:00
parent 51813336e9
commit dc6dd9ceb1

View file

@ -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]