diff options
Diffstat (limited to 'crates/completion/src')
-rw-r--r-- | crates/completion/src/render.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/completion/src/render.rs b/crates/completion/src/render.rs index 6eb20df2b..e11b881ca 100644 --- a/crates/completion/src/render.rs +++ b/crates/completion/src/render.rs | |||
@@ -201,8 +201,7 @@ impl<'a> Render<'a> { | |||
201 | ScopeDef::ModuleDef(Module(..)) => CompletionItemKind::SymbolKind(SymbolKind::Module), | 201 | ScopeDef::ModuleDef(Module(..)) => CompletionItemKind::SymbolKind(SymbolKind::Module), |
202 | ScopeDef::ModuleDef(Adt(adt)) => CompletionItemKind::SymbolKind(match adt { | 202 | ScopeDef::ModuleDef(Adt(adt)) => CompletionItemKind::SymbolKind(match adt { |
203 | hir::Adt::Struct(_) => SymbolKind::Struct, | 203 | hir::Adt::Struct(_) => SymbolKind::Struct, |
204 | // FIXME: add CompletionItemKind::Union | 204 | hir::Adt::Union(_) => SymbolKind::Union, |
205 | hir::Adt::Union(_) => SymbolKind::Struct, | ||
206 | hir::Adt::Enum(_) => SymbolKind::Enum, | 205 | hir::Adt::Enum(_) => SymbolKind::Enum, |
207 | }), | 206 | }), |
208 | ScopeDef::ModuleDef(Const(..)) => CompletionItemKind::SymbolKind(SymbolKind::Const), | 207 | ScopeDef::ModuleDef(Const(..)) => CompletionItemKind::SymbolKind(SymbolKind::Const), |