mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix #205964
This commit is contained in:
parent
838a59f240
commit
a6671b6ce4
|
@ -834,6 +834,7 @@ Registry.as<IConfigurationMigrationRegistry>(WorkbenchExtensions.ConfigurationMi
|
|||
announcement = announcement ? 'auto' : 'off';
|
||||
}
|
||||
}
|
||||
configurationKeyValuePairs.push([`${item.legacySoundSettingsKey}`, { value: undefined }]);
|
||||
configurationKeyValuePairs.push([`${item.settingsKey}`, { value: announcement !== undefined ? { announcement, sound } : { sound } }]);
|
||||
return configurationKeyValuePairs;
|
||||
}
|
||||
|
@ -844,11 +845,13 @@ Registry.as<IConfigurationMigrationRegistry>(WorkbenchExtensions.ConfigurationMi
|
|||
key: item.legacyAnnouncementSettingsKey!,
|
||||
migrateFn: (announcement, accessor) => {
|
||||
const configurationKeyValuePairs: ConfigurationKeyValuePairs = [];
|
||||
const sound = accessor(item.legacySoundSettingsKey);
|
||||
const sound = accessor(item.settingsKey)?.sound || accessor(item.legacySoundSettingsKey);
|
||||
if (announcement !== undefined && typeof announcement !== 'string') {
|
||||
announcement = announcement ? 'auto' : 'off';
|
||||
}
|
||||
configurationKeyValuePairs.push([`${item.settingsKey}`, { value: announcement !== undefined ? { announcement, sound } : { sound } }]);
|
||||
configurationKeyValuePairs.push([`${item.legacyAnnouncementSettingsKey}`, { value: undefined }]);
|
||||
configurationKeyValuePairs.push([`${item.legacySoundSettingsKey}`, { value: undefined }]);
|
||||
return configurationKeyValuePairs;
|
||||
}
|
||||
})));
|
||||
|
|
Loading…
Reference in a new issue