File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/contrib/accessibility/browser Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -834,6 +834,7 @@ Registry.as<IConfigurationMigrationRegistry>(WorkbenchExtensions.ConfigurationMi
834
834
announcement = announcement ? 'auto' : 'off' ;
835
835
}
836
836
}
837
+ configurationKeyValuePairs . push ( [ `${ item . legacySoundSettingsKey } ` , { value : undefined } ] ) ;
837
838
configurationKeyValuePairs . push ( [ `${ item . settingsKey } ` , { value : announcement !== undefined ? { announcement, sound } : { sound } } ] ) ;
838
839
return configurationKeyValuePairs ;
839
840
}
@@ -844,11 +845,13 @@ Registry.as<IConfigurationMigrationRegistry>(WorkbenchExtensions.ConfigurationMi
844
845
key : item . legacyAnnouncementSettingsKey ! ,
845
846
migrateFn : ( announcement , accessor ) => {
846
847
const configurationKeyValuePairs : ConfigurationKeyValuePairs = [ ] ;
847
- const sound = accessor ( item . legacySoundSettingsKey ) ;
848
+ const sound = accessor ( item . settingsKey ) ?. sound || accessor ( item . legacySoundSettingsKey ) ;
848
849
if ( announcement !== undefined && typeof announcement !== 'string' ) {
849
850
announcement = announcement ? 'auto' : 'off' ;
850
851
}
851
852
configurationKeyValuePairs . push ( [ `${ item . settingsKey } ` , { value : announcement !== undefined ? { announcement, sound } : { sound } } ] ) ;
853
+ configurationKeyValuePairs . push ( [ `${ item . legacyAnnouncementSettingsKey } ` , { value : undefined } ] ) ;
854
+ configurationKeyValuePairs . push ( [ `${ item . legacySoundSettingsKey } ` , { value : undefined } ] ) ;
852
855
return configurationKeyValuePairs ;
853
856
}
854
857
} ) ) ) ;
You can’t perform that action at this time.
0 commit comments