diff --git a/lsp-mode.el b/lsp-mode.el index d9217f1f03c..5d9be60fda1 100644 --- a/lsp-mode.el +++ b/lsp-mode.el @@ -5409,7 +5409,7 @@ It will filter by KIND if non nil." "Execute code action by COMMAND-KIND." (if-let ((action (->> (lsp-get-or-calculate-code-actions command-kind) (-filter (-lambda ((&CodeAction :kind?)) - (and kind? (equal command-kind kind?)))) + (and kind? (s-prefix? command-kind kind?)))) lsp--select-action))) (lsp-execute-code-action action) (signal 'lsp-no-code-actions '(command-kind))))