Skip to content

Commit 19bdc11

Browse files
nbfalconyyoncho
authored andcommitted
Fix byte-compile': lsp-execute-command'
Unlike previously assumed, calling `lsp-execute-command' causes byte-compile warnings, not just using it in `cl-defmethod'. Wrap the call in `with-no-warnings', since that should be the only use of that function.
1 parent 1c0c2b8 commit 19bdc11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5215,7 +5215,8 @@ It will filter by KIND if non nil."
52155215
(lsp--workspace-client)
52165216
(lsp--client-server-id))))
52175217
(condition-case nil
5218-
(lsp-execute-command server-id (intern command) arguments?)
5218+
(with-no-warnings
5219+
(lsp-execute-command server-id (intern command) arguments?))
52195220
(cl-no-applicable-method
52205221
(if-let ((action-handler (lsp--find-action-handler command)))
52215222
(funcall action-handler action)

0 commit comments

Comments
 (0)