From f2cb7dbcb71d81336c95dc7ae1301ba2a79ef707 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 20 Jan 2021 18:38:12 +0100 Subject: Partially unify SymbolKind and CompletionItemKind --- crates/completion/src/completions/mod_.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'crates/completion/src/completions/mod_.rs') diff --git a/crates/completion/src/completions/mod_.rs b/crates/completion/src/completions/mod_.rs index 00e951ca9..352fc7c77 100644 --- a/crates/completion/src/completions/mod_.rs +++ b/crates/completion/src/completions/mod_.rs @@ -3,11 +3,13 @@ use std::iter; use hir::{Module, ModuleSource}; -use ide_db::base_db::{SourceDatabaseExt, VfsPath}; -use ide_db::RootDatabase; +use ide_db::{ + base_db::{SourceDatabaseExt, VfsPath}, + RootDatabase, SymbolKind, +}; use rustc_hash::FxHashSet; -use crate::{CompletionItem, CompletionItemKind}; +use crate::CompletionItem; use crate::{context::CompletionContext, item::CompletionKind, Completions}; @@ -79,7 +81,7 @@ pub(crate) fn complete_mod(acc: &mut Completions, ctx: &CompletionContext) -> Op label.push(';'); } CompletionItem::new(CompletionKind::Magic, ctx.source_range(), &label) - .kind(CompletionItemKind::Module) + .kind(SymbolKind::Module) .add_to(acc) }); -- cgit v1.2.3