mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 22:24:14 +00:00
Fix the other test
This commit is contained in:
parent
bbe1fbd178
commit
1de7848b57
2 changed files with 25 additions and 3 deletions
|
@ -747,7 +747,7 @@ impl My<|>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn function_magic_completion() {
|
fn function_fuzzy_completion() {
|
||||||
check_edit(
|
check_edit(
|
||||||
"stdin",
|
"stdin",
|
||||||
r#"
|
r#"
|
||||||
|
@ -772,7 +772,7 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn macro_magic_completion() {
|
fn macro_fuzzy_completion() {
|
||||||
check_edit(
|
check_edit(
|
||||||
"macro_with_curlies!",
|
"macro_with_curlies!",
|
||||||
r#"
|
r#"
|
||||||
|
@ -799,7 +799,7 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn case_insensitive_magic_completion_works() {
|
fn struct_fuzzy_completion() {
|
||||||
check_edit(
|
check_edit(
|
||||||
"ThirdStruct",
|
"ThirdStruct",
|
||||||
r#"
|
r#"
|
||||||
|
|
|
@ -425,6 +425,28 @@ fn main() { let _: m::Spam = S<|> }
|
||||||
insert: "m",
|
insert: "m",
|
||||||
kind: Module,
|
kind: Module,
|
||||||
},
|
},
|
||||||
|
CompletionItem {
|
||||||
|
label: "m::Spam",
|
||||||
|
source_range: 75..76,
|
||||||
|
text_edit: TextEdit {
|
||||||
|
indels: [
|
||||||
|
Indel {
|
||||||
|
insert: "use m::Spam;",
|
||||||
|
delete: 0..0,
|
||||||
|
},
|
||||||
|
Indel {
|
||||||
|
insert: "\n\n",
|
||||||
|
delete: 0..0,
|
||||||
|
},
|
||||||
|
Indel {
|
||||||
|
insert: "Spam",
|
||||||
|
delete: 75..76,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
kind: Enum,
|
||||||
|
lookup: "Spam",
|
||||||
|
},
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
label: "m::Spam::Foo",
|
label: "m::Spam::Foo",
|
||||||
source_range: 75..76,
|
source_range: 75..76,
|
||||||
|
|
Loading…
Reference in a new issue