From 354ad29493dbb258c11190abd7632af95c538e16 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 16 Jun 2021 15:08:44 +0200 Subject: Filter out non-type completions in the respective completions modules instead --- crates/ide_completion/src/render.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'crates/ide_completion/src/render.rs') diff --git a/crates/ide_completion/src/render.rs b/crates/ide_completion/src/render.rs index d8ca18c73..add296124 100644 --- a/crates/ide_completion/src/render.rs +++ b/crates/ide_completion/src/render.rs @@ -55,9 +55,6 @@ pub(crate) fn render_resolution_with_import( import_edit: ImportEdit, ) -> Option { let resolution = hir::ScopeDef::from(import_edit.import.original_item); - if ctx.completion.expects_type() && resolution.is_value_def() { - return None; - } let local_name = match resolution { hir::ScopeDef::ModuleDef(hir::ModuleDef::Function(f)) => f.name(ctx.completion.db), hir::ScopeDef::ModuleDef(hir::ModuleDef::Const(c)) => c.name(ctx.completion.db)?, -- cgit v1.2.3