diff options
Diffstat (limited to 'crates/ra_ide_api/src/completion/completion_item.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/completion_item.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs index f2301653a..ee1f8bce0 100644 --- a/crates/ra_ide_api/src/completion/completion_item.rs +++ b/crates/ra_ide_api/src/completion/completion_item.rs | |||
@@ -222,6 +222,7 @@ impl Builder { | |||
222 | hir::ModuleDef::Function(func) => return self.from_function(ctx, func), | 222 | hir::ModuleDef::Function(func) => return self.from_function(ctx, func), |
223 | hir::ModuleDef::Struct(it) => (CompletionItemKind::Struct, it.docs(ctx.db)), | 223 | hir::ModuleDef::Struct(it) => (CompletionItemKind::Struct, it.docs(ctx.db)), |
224 | hir::ModuleDef::Enum(it) => (CompletionItemKind::Enum, it.docs(ctx.db)), | 224 | hir::ModuleDef::Enum(it) => (CompletionItemKind::Enum, it.docs(ctx.db)), |
225 | hir::ModuleDef::EnumVariant(it) => (CompletionItemKind::EnumVariant, it.docs(ctx.db)), | ||
225 | hir::ModuleDef::Def(def_id) => match def_id.resolve(ctx.db) { | 226 | hir::ModuleDef::Def(def_id) => match def_id.resolve(ctx.db) { |
226 | hir::Def::Trait(it) => (CompletionItemKind::Trait, it.docs(ctx.db)), | 227 | hir::Def::Trait(it) => (CompletionItemKind::Trait, it.docs(ctx.db)), |
227 | hir::Def::Type(it) => (CompletionItemKind::TypeAlias, it.docs(ctx.db)), | 228 | hir::Def::Type(it) => (CompletionItemKind::TypeAlias, it.docs(ctx.db)), |