mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +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]
|
||||
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#"
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue