mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
Refactor Configuration Migration Logic (#198414)
* fix migration #198056
This commit is contained in:
committed by
GitHub
parent
cfd52679ce
commit
a6469cae57
@@ -817,17 +817,21 @@ Registry.as<IConfigurationMigrationRegistry>(Extensions.ConfigurationMigration)
|
||||
Registry.as<IConfigurationMigrationRegistry>(Extensions.ConfigurationMigration)
|
||||
.registerConfigurationMigrations([{
|
||||
key: 'workbench.editor.doubleClickTabToToggleEditorGroupSizes', migrateFn: (value: any) => {
|
||||
const results: ConfigurationKeyValuePairs = [];
|
||||
if (typeof value === 'boolean') {
|
||||
value = value ? 'expand' : 'off';
|
||||
results.push(['workbench.editor.doubleClickTabToToggleEditorGroupSizes', { value }]);
|
||||
}
|
||||
return [['workbench.editor.doubleClickTabToToggleEditorGroupSizes', { value: value }]];
|
||||
return results;
|
||||
}
|
||||
}, {
|
||||
key: LayoutSettings.EDITOR_TABS_MODE, migrateFn: (value: any) => {
|
||||
const results: ConfigurationKeyValuePairs = [];
|
||||
if (typeof value === 'boolean') {
|
||||
value = value ? EditorTabsMode.MULTIPLE : EditorTabsMode.SINGLE;
|
||||
results.push([LayoutSettings.EDITOR_TABS_MODE, { value }]);
|
||||
}
|
||||
return [[LayoutSettings.EDITOR_TABS_MODE, { value }]];
|
||||
return results;
|
||||
}
|
||||
}, {
|
||||
key: 'workbench.editor.tabCloseButton', migrateFn: (value: any) => {
|
||||
|
||||
Reference in New Issue
Block a user