mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
fix: Fix don't drop param completions when fully typing out a pattern
This commit is contained in:
parent
a3393c9a57
commit
314b199e3c
2 changed files with 23 additions and 3 deletions
|
@ -368,3 +368,17 @@ fn foo() {
|
|||
"#]],
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn completes_fully_equal() {
|
||||
check_empty(
|
||||
r#"
|
||||
fn foo(bar: u32) {}
|
||||
fn bar(bar$0) {}
|
||||
"#,
|
||||
expect![[r#"
|
||||
bn bar: u32
|
||||
kw mut
|
||||
"#]],
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue