Skip to content

Commit 5ea5db1

Browse files
committed
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 3e775f8 commit 5ea5db1

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
@@ -5178,7 +5178,8 @@ It will show up only if current point has signature help."
51785178
(lsp--workspace-client)
51795179
(lsp--client-server-id))))
51805180
(condition-case nil
5181-
(lsp-execute-command server-id (intern command) arguments?)
5181+
(with-no-warnings
5182+
(lsp-execute-command server-id (intern command) arguments?))
51825183
(cl-no-applicable-method
51835184
(if-let ((action-handler (lsp--find-action-handler command)))
51845185
(funcall action-handler action)

0 commit comments

Comments
 (0)