mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
fix: remove undesired completions from trait/impl blocks
This commit is contained in:
parent
5a1fd05760
commit
ce36746035
@ -13,6 +13,8 @@ pub(crate) fn complete_unqualified_path(acc: &mut Completions, ctx: &CompletionC
|
|||||||
|| ctx.record_pat_syntax.is_some()
|
|| ctx.record_pat_syntax.is_some()
|
||||||
|| ctx.attribute_under_caret.is_some()
|
|| ctx.attribute_under_caret.is_some()
|
||||||
|| ctx.mod_declaration_under_caret.is_some()
|
|| ctx.mod_declaration_under_caret.is_some()
|
||||||
|
|| ctx.has_impl_parent
|
||||||
|
|| ctx.has_trait_parent
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user