Skip to content

Commit 84fadc5

Browse files
nbfalconyyoncho
authored andcommitted
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 dddb162 commit 84fadc5

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
@@ -969,7 +969,8 @@ calling `remove-overlays'.")
969969
(defvar-local lsp--virtual-buffer-point-max nil)
970970

971971
(cl-defgeneric lsp-execute-command (server command arguments)
972-
"Ask SERVER to execute COMMAND with ARGUMENTS.")
972+
"Ask SERVER to execute COMMAND with ARGUMENTS."
973+
(declare (obsolete "use `make-lsp-client' with :action-handlers instead." "7.1.0")))
973974

974975
(defun lsp-elt (sequence n)
975976
"Return Nth element of SEQUENCE or nil if N is out of range."
@@ -5214,8 +5215,7 @@ It will filter by KIND if non nil."
52145215
(lsp--workspace-client)
52155216
(lsp--client-server-id))))
52165217
(condition-case nil
5217-
(prog1 (lsp-execute-command server-id (intern command) arguments?)
5218-
(lsp--warn "`lsp-execute-command' is deprecated"))
5218+
(lsp-execute-command server-id (intern command) arguments?)
52195219
(cl-no-applicable-method
52205220
(if-let ((action-handler (lsp--find-action-handler command)))
52215221
(funcall action-handler action)

0 commit comments

Comments
 (0)