mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
fix: Fix snippets triggering where they shouldn't
This commit is contained in:
parent
582f99d293
commit
0ce620686c
10 changed files with 133 additions and 101 deletions
|
@ -197,7 +197,7 @@ fn should_add_parens(ctx: &CompletionContext) -> bool {
|
|||
}
|
||||
|
||||
match ctx.path_context {
|
||||
Some(PathCompletionCtx { kind: PathKind::Expr, has_call_parens: true, .. }) => {
|
||||
Some(PathCompletionCtx { kind: PathKind::Expr { .. }, has_call_parens: true, .. }) => {
|
||||
return false
|
||||
}
|
||||
Some(PathCompletionCtx { kind: PathKind::Use | PathKind::Type, .. }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue