From 879432452d15d4e9c373a6233a0cd15e22f20ef3 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sat, 20 Mar 2021 22:54:04 +0200 Subject: Docs --- crates/ide_completion/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide_completion/src') diff --git a/crates/ide_completion/src/lib.rs b/crates/ide_completion/src/lib.rs index c91c98871..9ecd82b06 100644 --- a/crates/ide_completion/src/lib.rs +++ b/crates/ide_completion/src/lib.rs @@ -152,12 +152,12 @@ pub fn resolve_completion_edits( let current_module = ctx.sema.scope(position_for_import).module()?; let current_crate = current_module.krate(); - let (import_path, item_to_import) = items_locator::locate_for_name( + let (import_path, item_to_import) = items_locator::items_with_name( &ctx.sema, current_crate, NameToImport::Exact(imported_name), items_locator::AssocItemSearch::Include, - None, + Some(items_locator::DEFAULT_QUERY_SEARCH_LIMIT), ) .into_iter() .filter_map(|candidate| { -- cgit v1.2.3