Skip to content

Commit

Permalink
Merge pull request microsoft#159099 from microsoft/aiday/issue159064
Browse files Browse the repository at this point in the history
Migrating the sticky scroll experimental feature
  • Loading branch information
Aiday Marlen Kyzy authored Aug 25, 2022
2 parents 87d957e + 869469c commit 22c16c4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/vs/editor/browser/config/migrateOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,23 @@ registerEditorSettingMigration('quickSuggestions', (input, read, write) => {
write('quickSuggestions', newValue);
}
});

// Sticky Scroll

registerEditorSettingMigration('experimental.stickyScroll.enabled', (value, read, write) => {
if (typeof value === 'boolean') {
write('experimental.stickyScroll.enabled', undefined);
if (typeof read('stickyScroll.enabled') === 'undefined') {
write('stickyScroll.enabled', value);
}
}
});

registerEditorSettingMigration('experimental.stickyScroll.maxLineCount', (value, read, write) => {
if (typeof value === 'number') {
write('experimental.stickyScroll.maxLineCount', undefined);
if (typeof read('stickyScroll.maxLineCount') === 'undefined') {
write('stickyScroll.maxLineCount', value);
}
}
});

0 comments on commit 22c16c4

Please sign in to comment.