Skip to content

Commit 4870b6b

Browse files
Account for Generate actions when filtering the allowed ones
1 parent cdd0ac2 commit 4870b6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/rust-analyzer/src/lsp/from_proto.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ pub(crate) fn file_range_uri(
103103

104104
pub(crate) fn assist_kind(kind: lsp_types::CodeActionKind) -> Option<AssistKind> {
105105
let assist_kind = match &kind {
106+
k if k == &lsp_types::CodeActionKind::EMPTY => AssistKind::Generate,
106107
k if k == &lsp_types::CodeActionKind::QUICKFIX => AssistKind::QuickFix,
107108
k if k == &lsp_types::CodeActionKind::REFACTOR => AssistKind::Refactor,
108109
k if k == &lsp_types::CodeActionKind::REFACTOR_EXTRACT => AssistKind::RefactorExtract,

0 commit comments

Comments
 (0)