We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Generate
1 parent 9c45a45 commit 1b9fb33Copy full SHA for 1b9fb33
src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs
@@ -103,6 +103,7 @@ pub(crate) fn file_range_uri(
103
104
pub(crate) fn assist_kind(kind: lsp_types::CodeActionKind) -> Option<AssistKind> {
105
let assist_kind = match &kind {
106
+ k if k == &lsp_types::CodeActionKind::EMPTY => AssistKind::Generate,
107
k if k == &lsp_types::CodeActionKind::QUICKFIX => AssistKind::QuickFix,
108
k if k == &lsp_types::CodeActionKind::REFACTOR => AssistKind::Refactor,
109
k if k == &lsp_types::CodeActionKind::REFACTOR_EXTRACT => AssistKind::RefactorExtract,
0 commit comments