File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/tools/rust-analyzer/crates/rust-analyzer/src Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -910,11 +910,18 @@ impl Config {
910910
911911 patch_old_style:: patch_json_for_outdated_configs ( & mut json) ;
912912
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+
913922 // IMPORTANT : This holds as long as ` completion_snippets_custom` is declared `client`.
914923 config. snippets . clear ( ) ;
915924
916- let snips = self . completion_snippets_custom ( ) . to_owned ( ) ;
917-
918925 for ( name, def) in snips. iter ( ) {
919926 if def. prefix . is_empty ( ) && def. postfix . is_empty ( ) {
920927 continue ;
You can’t perform that action at this time.
0 commit comments