fix: Fix don't drop param completions when fully typing out a pattern

This commit is contained in:
Lukas Wirth 2022-01-12 12:36:46 +01:00
parent a3393c9a57
commit 314b199e3c
2 changed files with 23 additions and 3 deletions

View file

@ -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
"#]],
)
}