mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
fix: Fix auto-ref completions inserting into wrong locations
This commit is contained in:
parent
1f028403cd
commit
06ee4d6222
10 changed files with 98 additions and 94 deletions
|
@ -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::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue