diff options
-rw-r--r-- | crates/ra_ide/src/completion/complete_pattern.rs | 1 | ||||
-rw-r--r-- | crates/ra_ide/src/completion/complete_qualified_path.rs | 1 | ||||
-rw-r--r-- | crates/ra_ide/src/completion/complete_unqualified_path.rs | 9 |
3 files changed, 11 insertions, 0 deletions
diff --git a/crates/ra_ide/src/completion/complete_pattern.rs b/crates/ra_ide/src/completion/complete_pattern.rs index 367e2bbce..9b79e7a09 100644 --- a/crates/ra_ide/src/completion/complete_pattern.rs +++ b/crates/ra_ide/src/completion/complete_pattern.rs | |||
@@ -130,6 +130,7 @@ mod tests { | |||
130 | delete: 90..90, | 130 | delete: 90..90, |
131 | insert: "m!($0)", | 131 | insert: "m!($0)", |
132 | kind: Macro, | 132 | kind: Macro, |
133 | lookup: "m!", | ||
133 | detail: "macro_rules! m", | 134 | detail: "macro_rules! m", |
134 | }, | 135 | }, |
135 | ] | 136 | ] |
diff --git a/crates/ra_ide/src/completion/complete_qualified_path.rs b/crates/ra_ide/src/completion/complete_qualified_path.rs index a16866cd2..5175c8afe 100644 --- a/crates/ra_ide/src/completion/complete_qualified_path.rs +++ b/crates/ra_ide/src/completion/complete_qualified_path.rs | |||
@@ -1189,6 +1189,7 @@ mod tests { | |||
1189 | delete: 82..82, | 1189 | delete: 82..82, |
1190 | insert: "foo!($0)", | 1190 | insert: "foo!($0)", |
1191 | kind: Macro, | 1191 | kind: Macro, |
1192 | lookup: "foo!", | ||
1192 | detail: "#[macro_export]\nmacro_rules! foo", | 1193 | detail: "#[macro_export]\nmacro_rules! foo", |
1193 | }, | 1194 | }, |
1194 | CompletionItem { | 1195 | CompletionItem { |
diff --git a/crates/ra_ide/src/completion/complete_unqualified_path.rs b/crates/ra_ide/src/completion/complete_unqualified_path.rs index a0a04bb58..0d1e9f8ea 100644 --- a/crates/ra_ide/src/completion/complete_unqualified_path.rs +++ b/crates/ra_ide/src/completion/complete_unqualified_path.rs | |||
@@ -785,6 +785,7 @@ mod tests { | |||
785 | delete: 256..256, | 785 | delete: 256..256, |
786 | insert: "bar!($0)", | 786 | insert: "bar!($0)", |
787 | kind: Macro, | 787 | kind: Macro, |
788 | lookup: "bar!", | ||
788 | detail: "macro_rules! bar", | 789 | detail: "macro_rules! bar", |
789 | }, | 790 | }, |
790 | CompletionItem { | 791 | CompletionItem { |
@@ -793,6 +794,7 @@ mod tests { | |||
793 | delete: 256..256, | 794 | delete: 256..256, |
794 | insert: "baz!($0)", | 795 | insert: "baz!($0)", |
795 | kind: Macro, | 796 | kind: Macro, |
797 | lookup: "baz!", | ||
796 | detail: "#[macro_export]\nmacro_rules! baz", | 798 | detail: "#[macro_export]\nmacro_rules! baz", |
797 | }, | 799 | }, |
798 | CompletionItem { | 800 | CompletionItem { |
@@ -801,6 +803,7 @@ mod tests { | |||
801 | delete: 256..256, | 803 | delete: 256..256, |
802 | insert: "foo!($0)", | 804 | insert: "foo!($0)", |
803 | kind: Macro, | 805 | kind: Macro, |
806 | lookup: "foo!", | ||
804 | detail: "macro_rules! foo", | 807 | detail: "macro_rules! foo", |
805 | }, | 808 | }, |
806 | CompletionItem { | 809 | CompletionItem { |
@@ -854,6 +857,7 @@ mod tests { | |||
854 | delete: 50..50, | 857 | delete: 50..50, |
855 | insert: "foo!($0)", | 858 | insert: "foo!($0)", |
856 | kind: Macro, | 859 | kind: Macro, |
860 | lookup: "foo!", | ||
857 | detail: "macro_rules! foo", | 861 | detail: "macro_rules! foo", |
858 | }, | 862 | }, |
859 | CompletionItem { | 863 | CompletionItem { |
@@ -893,6 +897,7 @@ mod tests { | |||
893 | delete: 58..58, | 897 | delete: 58..58, |
894 | insert: "foo!($0)", | 898 | insert: "foo!($0)", |
895 | kind: Macro, | 899 | kind: Macro, |
900 | lookup: "foo!", | ||
896 | detail: "macro_rules! foo", | 901 | detail: "macro_rules! foo", |
897 | }, | 902 | }, |
898 | CompletionItem { | 903 | CompletionItem { |
@@ -932,6 +937,7 @@ mod tests { | |||
932 | delete: 51..51, | 937 | delete: 51..51, |
933 | insert: "foo!($0)", | 938 | insert: "foo!($0)", |
934 | kind: Macro, | 939 | kind: Macro, |
940 | lookup: "foo!", | ||
935 | detail: "macro_rules! foo", | 941 | detail: "macro_rules! foo", |
936 | }, | 942 | }, |
937 | CompletionItem { | 943 | CompletionItem { |
@@ -1005,6 +1011,7 @@ mod tests { | |||
1005 | delete: 80..80, | 1011 | delete: 80..80, |
1006 | insert: "m!($0)", | 1012 | insert: "m!($0)", |
1007 | kind: Macro, | 1013 | kind: Macro, |
1014 | lookup: "m!", | ||
1008 | detail: "macro_rules! m", | 1015 | detail: "macro_rules! m", |
1009 | }, | 1016 | }, |
1010 | CompletionItem { | 1017 | CompletionItem { |
@@ -1058,6 +1065,7 @@ mod tests { | |||
1058 | delete: 80..81, | 1065 | delete: 80..81, |
1059 | insert: "m!($0)", | 1066 | insert: "m!($0)", |
1060 | kind: Macro, | 1067 | kind: Macro, |
1068 | lookup: "m!", | ||
1061 | detail: "macro_rules! m", | 1069 | detail: "macro_rules! m", |
1062 | }, | 1070 | }, |
1063 | CompletionItem { | 1071 | CompletionItem { |
@@ -1111,6 +1119,7 @@ mod tests { | |||
1111 | delete: 80..81, | 1119 | delete: 80..81, |
1112 | insert: "m!($0)", | 1120 | insert: "m!($0)", |
1113 | kind: Macro, | 1121 | kind: Macro, |
1122 | lookup: "m!", | ||
1114 | detail: "macro_rules! m", | 1123 | detail: "macro_rules! m", |
1115 | }, | 1124 | }, |
1116 | CompletionItem { | 1125 | CompletionItem { |