mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-04 23:50:47 +00:00
internal: Lift out item list path completions from (un)qualified_path
This commit is contained in:
parent
52a58f672e
commit
25d133e3b8
13 changed files with 97 additions and 68 deletions
|
@ -46,7 +46,7 @@ pub(crate) fn complete_item_snippet(acc: &mut Completions, ctx: &CompletionConte
|
|||
if !(ctx.expects_item() || ctx.has_block_expr_parent())
|
||||
|| ctx.previous_token_is(T![unsafe])
|
||||
|| ctx.path_qual().is_some()
|
||||
|| ctx.has_impl_or_trait_prev_sibling()
|
||||
|| ctx.has_unfinished_impl_or_trait_prev_sibling()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue