Skip to content

Commit 1b9fb33

Browse files
Account for Generate actions when filtering the allowed ones
1 parent 9c45a45 commit 1b9fb33

File tree

1 file changed

+1
-0
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src/lsp

1 file changed

+1
-0
lines changed

src/tools/rust-analyzer/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)