diff options
author | Eduardo Canellas <[email protected]> | 2021-05-26 17:21:27 +0100 |
---|---|---|
committer | Eduardo Canellas <[email protected]> | 2021-05-26 17:21:27 +0100 |
commit | ce367460354deae07550f839c612dc8c8bf13930 (patch) | |
tree | be03bdc7bbebca4cf2500f23d5997ba091b20678 /crates | |
parent | 5a1fd05760260be9a91f6fad2fd6463edffbcb13 (diff) |
fix: remove undesired completions from trait/impl blocks
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ide_completion/src/completions/unqualified_path.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
13 | || ctx.record_pat_syntax.is_some() | 13 | || ctx.record_pat_syntax.is_some() |
14 | || ctx.attribute_under_caret.is_some() | 14 | || ctx.attribute_under_caret.is_some() |
15 | || ctx.mod_declaration_under_caret.is_some() | 15 | || ctx.mod_declaration_under_caret.is_some() |
16 | || ctx.has_impl_parent | ||
17 | || ctx.has_trait_parent | ||
16 | { | 18 | { |
17 | return; | 19 | return; |
18 | } | 20 | } |