Fix visibility mods not being completed for field defs

This commit is contained in:
Lukas Wirth
2022-06-03 15:41:51 +02:00
parent 519ac81b57
commit c5dcc77b40
10 changed files with 85 additions and 15 deletions

View File

@@ -286,7 +286,7 @@ fn render_resolution_simple_(
// Add `<>` for generic types
let type_path_no_ty_args = matches!(
ctx.completion.path_context(),
Some(PathCompletionCtx { kind: PathKind::Type, has_type_args: false, .. })
Some(PathCompletionCtx { kind: PathKind::Type { .. }, has_type_args: false, .. })
) && ctx.completion.config.callable.is_some();
if type_path_no_ty_args {
if let Some(cap) = ctx.snippet_cap() {