Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/dot.rs')
| -rw-r--r-- | crates/ide-completion/src/completions/dot.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/crates/ide-completion/src/completions/dot.rs b/crates/ide-completion/src/completions/dot.rs index 1e0b771166..a11652ca30 100644 --- a/crates/ide-completion/src/completions/dot.rs +++ b/crates/ide-completion/src/completions/dot.rs @@ -46,12 +46,14 @@ fn complete_undotted_self(acc: &mut Completions, ctx: &CompletionContext) { return; } match ctx.path_context() { - Some(PathCompletionCtx { - is_absolute_path: false, - qualifier: None, - kind: PathKind::Expr { .. }, - .. - }) if !ctx.is_path_disallowed() => {} + Some( + path_ctx @ PathCompletionCtx { + is_absolute_path: false, + qualifier: None, + kind: PathKind::Expr { .. }, + .. + }, + ) if path_ctx.is_trivial_path() && ctx.qualifier_ctx.none() => {} _ => return, } |