mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 02:14:06 +00:00
Refactor Configuration Migration Logic (#198414)
* fix migration #198056
This commit is contained in:
parent
cfd52679ce
commit
a6469cae57
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -165,11 +165,10 @@
|
|||
"src/vs/workbench/workbench.web.main.ts",
|
||||
"src/vs/workbench/api/common/extHostTypes.ts"
|
||||
],
|
||||
|
||||
// Temporarily enabled for self-hosting
|
||||
"terminal.integrated.stickyScroll.enabled": true,
|
||||
|
||||
// Temporarily enabled for self-hosting
|
||||
"scm.showIncomingChanges": "always",
|
||||
"scm.showOutgoingChanges": "always"
|
||||
"scm.showOutgoingChanges": "always",
|
||||
"workbench.editor.showTabs": "multiple",
|
||||
}
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue