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 {
910
910
911
911
patch_old_style:: patch_json_for_outdated_configs ( & mut json) ;
912
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
+
913
922
// IMPORTANT : This holds as long as ` completion_snippets_custom` is declared `client`.
914
923
config. snippets . clear ( ) ;
915
924
916
- let snips = self . completion_snippets_custom ( ) . to_owned ( ) ;
917
-
918
925
for ( name, def) in snips. iter ( ) {
919
926
if def. prefix . is_empty ( ) && def. postfix . is_empty ( ) {
920
927
continue ;
You can’t perform that action at this time.
0 commit comments