Use lsp-workspace-restart

lsp-restart-workspace is deprecated and raises a warning in *Messages*:

    ‘lsp-restart-workspace’ is an obsolete command (as of lsp-mode 6.1); use ‘lsp-workspace-restart’ instead.
This commit is contained in:
Fidel Ramos 2020-12-09 15:21:12 +01:00 committed by Bozhidar Batsov
parent 428e2266e2
commit 6236bfefd9
2 changed files with 2 additions and 1 deletions

View file

@ -25,6 +25,7 @@
* Fallback to `sample/prelude-modules.el` in the absence of a `prelude-modules.el` in one's personal folder. * Fallback to `sample/prelude-modules.el` in the absence of a `prelude-modules.el` in one's personal folder.
* [Ruby] Don't auto-insert coding comments. * [Ruby] Don't auto-insert coding comments.
* Hide (via `diminish`) `editorconfig-mode`, `super-save`, `company`, `abbrev` and `ivy` in the modeline. * Hide (via `diminish`) `editorconfig-mode`, `super-save`, `company`, `abbrev` and `ivy` in the modeline.
* Use `lsp-workspace-restart` function instead of deprecated `lsp-restart-workspace`.
### Bugs fixed ### Bugs fixed

View file

@ -42,7 +42,7 @@
(define-key lsp-ui-mode-map (kbd "C-c C-l .") 'lsp-ui-peek-find-definitions) (define-key lsp-ui-mode-map (kbd "C-c C-l .") 'lsp-ui-peek-find-definitions)
(define-key lsp-ui-mode-map (kbd "C-c C-l ?") 'lsp-ui-peek-find-references) (define-key lsp-ui-mode-map (kbd "C-c C-l ?") 'lsp-ui-peek-find-references)
(define-key lsp-ui-mode-map (kbd "C-c C-l r") 'lsp-rename) (define-key lsp-ui-mode-map (kbd "C-c C-l r") 'lsp-rename)
(define-key lsp-ui-mode-map (kbd "C-c C-l x") 'lsp-restart-workspace) (define-key lsp-ui-mode-map (kbd "C-c C-l x") 'lsp-workspace-restart)
(define-key lsp-ui-mode-map (kbd "C-c C-l w") 'lsp-ui-peek-find-workspace-symbol) (define-key lsp-ui-mode-map (kbd "C-c C-l w") 'lsp-ui-peek-find-workspace-symbol)
(define-key lsp-ui-mode-map (kbd "C-c C-l i") 'lsp-ui-peek-find-implementation) (define-key lsp-ui-mode-map (kbd "C-c C-l i") 'lsp-ui-peek-find-implementation)
(define-key lsp-ui-mode-map (kbd "C-c C-l d") 'lsp-describe-thing-at-point) (define-key lsp-ui-mode-map (kbd "C-c C-l d") 'lsp-describe-thing-at-point)