We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fd1b04 + 5575588 commit de717a8Copy full SHA for de717a8
crates/ra_ide/src/completion/complete_snippet.rs
@@ -36,6 +36,7 @@ fn ${1:feature}() {
36
.lookup_by("tfn")
37
.add_to(acc);
38
39
+ snippet(ctx, "macro_rules", "macro_rules! $1 {\n\t($2) => {\n\t\t$0\n\t};\n}").add_to(acc);
40
snippet(ctx, "pub(crate)", "pub(crate) $0").add_to(acc);
41
}
42
@@ -106,6 +107,13 @@ mod tests {
106
107
kind: Snippet,
108
lookup: "tfn",
109
},
110
+ CompletionItem {
111
+ label: "macro_rules",
112
+ source_range: [78; 78),
113
+ delete: [78; 78),
114
+ insert: "macro_rules! $1 {\n\t($2) => {\n\t\t$0\n\t};\n}",
115
+ kind: Snippet,
116
+ },
117
CompletionItem {
118
label: "pub(crate)",
119
source_range: [78; 78),
0 commit comments