Skip to content

Commit 398ea2b

Browse files
committed
lsp-execute-command': use make-obsolete'
The proper way to mark a function as deprecated is to use `make-obsolete'; use that instead of `lsp--warn'.
1 parent 44e5986 commit 398ea2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lsp-mode.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,8 @@ calling `remove-overlays'.")
10891089
(defvar-local lsp--virtual-buffer-point-max nil)
10901090

10911091
(cl-defgeneric lsp-execute-command (server command arguments)
1092-
"Ask SERVER to execute COMMAND with ARGUMENTS.")
1092+
"Ask SERVER to execute COMMAND with ARGUMENTS."
1093+
(declare (obsolete "use `make-lsp-client' with :action-handlers instead." "7.1.0")))
10931094

10941095
(defun lsp-elt (sequence n)
10951096
"Return Nth element of SEQUENCE or nil if N is out of range."
@@ -5177,8 +5178,7 @@ It will show up only if current point has signature help."
51775178
(lsp--workspace-client)
51785179
(lsp--client-server-id))))
51795180
(condition-case nil
5180-
(prog1 (lsp-execute-command server-id (intern command) arguments?)
5181-
(lsp--warn "`lsp-execute-command' is deprecated"))
5181+
(lsp-execute-command server-id (intern command) arguments?)
51825182
(cl-no-applicable-method
51835183
(if-let ((action-handler (lsp--find-action-handler command)))
51845184
(funcall action-handler action)

0 commit comments

Comments
 (0)