Fix the other test

This commit is contained in:
Kirill Bulatov 2020-11-14 14:59:03 +02:00
parent bbe1fbd178
commit 1de7848b57
2 changed files with 25 additions and 3 deletions

View file

@ -747,7 +747,7 @@ impl My<|>
}
#[test]
fn function_magic_completion() {
fn function_fuzzy_completion() {
check_edit(
"stdin",
r#"
@ -772,7 +772,7 @@ fn main() {
}
#[test]
fn macro_magic_completion() {
fn macro_fuzzy_completion() {
check_edit(
"macro_with_curlies!",
r#"
@ -799,7 +799,7 @@ fn main() {
}
#[test]
fn case_insensitive_magic_completion_works() {
fn struct_fuzzy_completion() {
check_edit(
"ThirdStruct",
r#"

View file

@ -425,6 +425,28 @@ fn main() { let _: m::Spam = S<|> }
insert: "m",
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 {
label: "m::Spam::Foo",
source_range: 75..76,