mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
Migration support
This commit is contained in:
@@ -766,3 +766,14 @@ Registry.as<IConfigurationMigrationRegistry>(Extensions.ConfigurationMigration)
|
||||
return result;
|
||||
}
|
||||
}]);
|
||||
|
||||
Registry.as<IConfigurationMigrationRegistry>(Extensions.ConfigurationMigration)
|
||||
.registerConfigurationMigrations([{
|
||||
key: 'workbench.editor.showTabs', migrateFn: (value: any) => {
|
||||
const result: ConfigurationKeyValuePairs = [['workbench.editor.showTabs', { value: value }]];
|
||||
if (value === false) {
|
||||
result.push(['workbench.editor.showTabs', { value: 'single' }]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user