aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/completion
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2020-03-14 19:24:18 +0000
committerFlorian Diebold <[email protected]>2020-03-16 17:38:19 +0000
commit0f3a54dd4d439a6598526144c4ecccee9c5f1362 (patch)
treec974dab20b25d0403f23222f4438bb3f9f7d8b0d /crates/ra_ide/src/completion
parent6305d094ac61ed6e437537b93f4e587b415678c9 (diff)
wip
Diffstat (limited to 'crates/ra_ide/src/completion')
-rw-r--r--crates/ra_ide/src/completion/complete_dot.rs4
-rw-r--r--crates/ra_ide/src/completion/complete_pattern.rs13
2 files changed, 13 insertions, 4 deletions
diff --git a/crates/ra_ide/src/completion/complete_dot.rs b/crates/ra_ide/src/completion/complete_dot.rs
index a30d1c2de..22f5077f5 100644
--- a/crates/ra_ide/src/completion/complete_dot.rs
+++ b/crates/ra_ide/src/completion/complete_dot.rs
@@ -777,8 +777,8 @@ mod tests {
777 [ 777 [
778 CompletionItem { 778 CompletionItem {
779 label: "the_field", 779 label: "the_field",
780 source_range: [552; 553), 780 source_range: [552; 552),
781 delete: [552; 553), 781 delete: [552; 552),
782 insert: "the_field", 782 insert: "the_field",
783 kind: Field, 783 kind: Field,
784 detail: "u32", 784 detail: "u32",
diff --git a/crates/ra_ide/src/completion/complete_pattern.rs b/crates/ra_ide/src/completion/complete_pattern.rs
index 6a1a66ef1..cb84bb934 100644
--- a/crates/ra_ide/src/completion/complete_pattern.rs
+++ b/crates/ra_ide/src/completion/complete_pattern.rs
@@ -89,7 +89,6 @@ mod tests {
89 89
90 #[test] 90 #[test]
91 fn completes_in_simple_macro_call() { 91 fn completes_in_simple_macro_call() {
92 // FIXME: doesn't work yet because of missing error recovery in macro expansion
93 let completions = complete( 92 let completions = complete(
94 r" 93 r"
95 macro_rules! m { ($e:expr) => { $e } } 94 macro_rules! m { ($e:expr) => { $e } }
@@ -102,6 +101,16 @@ mod tests {
102 } 101 }
103 ", 102 ",
104 ); 103 );
105 assert_debug_snapshot!(completions, @r###"[]"###); 104 assert_debug_snapshot!(completions, @r###"
105 [
106 CompletionItem {
107 label: "E",
108 source_range: [151; 151),
109 delete: [151; 151),
110 insert: "E",
111 kind: Enum,
112 },
113 ]
114 "###);
106 } 115 }
107} 116}