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 9bc53ff + a0898b9 commit fd2cb64Copy full SHA for fd2cb64
crates/rust-analyzer/src/config.rs
@@ -910,11 +910,18 @@ impl Config {
910
911
patch_old_style::patch_json_for_outdated_configs(&mut json);
912
913
+ let mut json_errors = vec![];
914
+ let snips = get_field_json::<FxHashMap<String, SnippetDef>>(
915
+ &mut json,
916
+ &mut json_errors,
917
+ "completion_snippets_custom",
918
+ None,
919
+ )
920
+ .unwrap_or(self.completion_snippets_custom().to_owned());
921
+
922
// IMPORTANT : This holds as long as ` completion_snippets_custom` is declared `client`.
923
config.snippets.clear();
924
- let snips = self.completion_snippets_custom().to_owned();
-
925
for (name, def) in snips.iter() {
926
if def.prefix.is_empty() && def.postfix.is_empty() {
927
continue;
0 commit comments