From ce367460354deae07550f839c612dc8c8bf13930 Mon Sep 17 00:00:00 2001 From: Eduardo Canellas Date: Wed, 26 May 2021 13:21:27 -0300 Subject: fix: remove undesired completions from trait/impl blocks --- crates/ide_completion/src/completions/unqualified_path.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates') diff --git a/crates/ide_completion/src/completions/unqualified_path.rs b/crates/ide_completion/src/completions/unqualified_path.rs index 7875500c1..6ea0efe9f 100644 --- a/crates/ide_completion/src/completions/unqualified_path.rs +++ b/crates/ide_completion/src/completions/unqualified_path.rs @@ -13,6 +13,8 @@ pub(crate) fn complete_unqualified_path(acc: &mut Completions, ctx: &CompletionC || ctx.record_pat_syntax.is_some() || ctx.attribute_under_caret.is_some() || ctx.mod_declaration_under_caret.is_some() + || ctx.has_impl_parent + || ctx.has_trait_parent { return; } -- cgit v1.2.3