mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Remove vertical ellipses from tests in complete_snippet.rs and presentation.rs
This commit is contained in:
parent
46c07ed578
commit
1b74eed8ca
2 changed files with 94 additions and 102 deletions
|
@ -84,33 +84,31 @@ mod tests {
|
|||
#[test]
|
||||
fn completes_snippets_in_items() {
|
||||
assert_debug_snapshot_matches!(
|
||||
do_snippet_completion(
|
||||
r"
|
||||
do_snippet_completion(
|
||||
r"
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
<|>
|
||||
}
|
||||
"
|
||||
),
|
||||
@r###"
|
||||
⋮[
|
||||
⋮ CompletionItem {
|
||||
⋮ label: "Test function",
|
||||
⋮ source_range: [78; 78),
|
||||
⋮ delete: [78; 78),
|
||||
⋮ insert: "#[test]\nfn ${1:feature}() {\n $0\n}",
|
||||
⋮ kind: Snippet,
|
||||
⋮ lookup: "tfn",
|
||||
⋮ },
|
||||
⋮ CompletionItem {
|
||||
⋮ label: "pub(crate)",
|
||||
⋮ source_range: [78; 78),
|
||||
⋮ delete: [78; 78),
|
||||
⋮ insert: "pub(crate) $0",
|
||||
⋮ kind: Snippet,
|
||||
⋮ },
|
||||
⋮]
|
||||
"###
|
||||
);
|
||||
),
|
||||
@r###"[
|
||||
CompletionItem {
|
||||
label: "Test function",
|
||||
source_range: [78; 78),
|
||||
delete: [78; 78),
|
||||
insert: "#[test]\nfn ${1:feature}() {\n $0\n}",
|
||||
kind: Snippet,
|
||||
lookup: "tfn",
|
||||
},
|
||||
CompletionItem {
|
||||
label: "pub(crate)",
|
||||
source_range: [78; 78),
|
||||
delete: [78; 78),
|
||||
insert: "pub(crate) $0",
|
||||
kind: Snippet,
|
||||
},
|
||||
]"###
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue