fix: Fix auto-ref completions inserting into wrong locations

This commit is contained in:
Lukas Wirth 2022-06-20 18:59:57 +02:00
parent 1f028403cd
commit 06ee4d6222
10 changed files with 98 additions and 94 deletions

View file

@ -399,6 +399,7 @@ fn foo() {
#[test]
fn completes_no_delims_if_existing() {
// FIXME: We should not complete functions here
check_empty(
r#"
struct Bar(u32);
@ -409,7 +410,7 @@ fn foo() {
}
"#,
expect![[r#"
fn foo() fn()
fn foo fn()
st Bar
bt u32
kw crate::
@ -427,7 +428,7 @@ fn foo() {
}
"#,
expect![[r#"
fn foo() fn()
fn foo fn()
st Foo
bt u32
kw crate::