Skip to content

Commit 22c16c4

Browse files
author
Aiday Marlen Kyzy
authored
Merge pull request microsoft#159099 from microsoft/aiday/issue159064
Migrating the sticky scroll experimental feature
2 parents 87d957e + 869469c commit 22c16c4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/vs/editor/browser/config/migrateOptions.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,23 @@ registerEditorSettingMigration('quickSuggestions', (input, read, write) => {
170170
write('quickSuggestions', newValue);
171171
}
172172
});
173+
174+
// Sticky Scroll
175+
176+
registerEditorSettingMigration('experimental.stickyScroll.enabled', (value, read, write) => {
177+
if (typeof value === 'boolean') {
178+
write('experimental.stickyScroll.enabled', undefined);
179+
if (typeof read('stickyScroll.enabled') === 'undefined') {
180+
write('stickyScroll.enabled', value);
181+
}
182+
}
183+
});
184+
185+
registerEditorSettingMigration('experimental.stickyScroll.maxLineCount', (value, read, write) => {
186+
if (typeof value === 'number') {
187+
write('experimental.stickyScroll.maxLineCount', undefined);
188+
if (typeof read('stickyScroll.maxLineCount') === 'undefined') {
189+
write('stickyScroll.maxLineCount', value);
190+
}
191+
}
192+
});

0 commit comments

Comments
 (0)