File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -595,6 +595,7 @@ impl Config {
595
595
. collect ( ) ;
596
596
patch_old_style:: patch_json_for_outdated_configs ( & mut json) ;
597
597
self . data = ConfigData :: from_json ( json, & mut errors) ;
598
+ tracing:: debug!( "deserialized config data: {:#?}" , self . data) ;
598
599
self . snippets . clear ( ) ;
599
600
for ( name, def) in self . data . completion_snippets_custom . iter ( ) {
600
601
if def. prefix . is_empty ( ) && def. postfix . is_empty ( ) {
Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ pub(super) fn patch_json_for_outdated_configs(json: &mut Value) {
117
117
) {
118
118
( Some ( Value :: Bool ( true ) ) , Some ( Value :: Bool ( true ) ) ) => json ! ( "fill_arguments" ) ,
119
119
( Some ( Value :: Bool ( true ) ) , _) => json ! ( "add_parentheses" ) ,
120
- ( _, _) => json ! ( null) ,
120
+ ( Some ( Value :: Bool ( false ) ) , Some ( Value :: Bool ( false ) ) ) => json ! ( "add_parentheses" ) ,
121
+ ( _, _) => return ,
121
122
} ;
122
123
merge ( json, json ! ( { "completion" : { "callable" : { "snippets" : res } } } ) ) ;
123
124
}
You can’t perform that action at this time.
0 commit comments