Skip to content

Commit 53e7d3a

Browse files
committed
Revert is_exclude_flyimport condition changes
1 parent 06e1aff commit 53e7d3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/ide-completion/src/completions/flyimport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ fn filter_excluded_flyimport(ctx: &CompletionContext<'_, '_>, import: &LocatedIm
389389
}
390390
let method_imported = import.item_to_import != import.original_item;
391391
if method_imported
392-
&& (is_exclude_flyimport == Some(AutoImportExclusionType::Methods)
392+
&& (is_exclude_flyimport.is_some()
393393
|| ctx.exclude_flyimport.contains_key(&import.original_item.into_module_def()))
394394
{
395395
// If this is a method, exclude it either if it was excluded itself (which may not be caught above,

0 commit comments

Comments
 (0)