Skip to content

Commit

Permalink
Migrating the sticky scroll experimental feature to the stable feature.
Browse files Browse the repository at this point in the history
Fixes #159064.
  • Loading branch information
aiday-mar committed Aug 24, 2022
1 parent c416626 commit 32d9009
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/vs/editor/browser/config/migrateOptions.ts
Expand Up @@ -170,3 +170,23 @@ registerEditorSettingMigration('quickSuggestions', (input, read, write) => {
write('quickSuggestions', newValue);
}
});

// Sticky Scroll

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

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

0 comments on commit 32d9009

Please sign in to comment.