diff options
author | Daniel McNab <[email protected]> | 2018-11-28 22:02:53 +0000 |
---|---|---|
committer | Daniel McNab <[email protected]> | 2018-11-28 22:02:53 +0000 |
commit | 3dea87b05484542631404f096a5e60b94f61c8a6 (patch) | |
tree | b41559fa90857c9a7afa15f903b246d62c67378e /crates/ra_analysis/src/completion | |
parent | f9884419040453a9ba7869db757bf23b82b705b3 (diff) |
Format completion text properly
Diffstat (limited to 'crates/ra_analysis/src/completion')
-rw-r--r-- | crates/ra_analysis/src/completion/reference_completion.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/completion/reference_completion.rs b/crates/ra_analysis/src/completion/reference_completion.rs index 870c27778..dd147a0e4 100644 --- a/crates/ra_analysis/src/completion/reference_completion.rs +++ b/crates/ra_analysis/src/completion/reference_completion.rs | |||
@@ -175,10 +175,13 @@ fn complete_mod_item_snippets(acc: &mut Vec<CompletionItem>) { | |||
175 | acc.push(CompletionItem { | 175 | acc.push(CompletionItem { |
176 | label: "Test function".to_string(), | 176 | label: "Test function".to_string(), |
177 | lookup: Some("tfn".to_string()), | 177 | lookup: Some("tfn".to_string()), |
178 | snippet: Some("#[test]\n\ | 178 | snippet: Some( |
179 | "#[test]\n\ | ||
179 | fn ${1:feature}() {\n\ | 180 | fn ${1:feature}() {\n\ |
180 | $0\n\ | 181 | $0\n\ |
181 | }".to_string()), | 182 | }" |
183 | .to_string() | ||
184 | ), | ||
182 | }); | 185 | }); |
183 | acc.push(CompletionItem { | 186 | acc.push(CompletionItem { |
184 | label: "pub(crate)".to_string(), | 187 | label: "pub(crate)".to_string(), |