Skip to content

Commit 32d9009

Browse files
author
aiday-mar
committed
Migrating the sticky scroll experimental feature to the stable feature. Fixes microsoft#159064.
1 parent c416626 commit 32d9009

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('editor.experimental.stickyScroll.enabled', (value, read, write) => {
177+
if (typeof value !== 'undefined') {
178+
write('editor.experimental.stickyScroll.enabled', undefined);
179+
if (typeof read('editor.stickyScroll.enabled') === 'undefined') {
180+
write('editor.stickyScroll.enabled', !!value);
181+
}
182+
}
183+
});
184+
185+
registerEditorSettingMigration('editor.experimental.stickyScroll.maxLineCount', (value, read, write) => {
186+
if (typeof value !== 'undefined') {
187+
write('editor.experimental.stickyScroll.maxLineCount', undefined);
188+
if (typeof read('editor.stickyScroll.maxLineCount') === 'undefined') {
189+
write('editor.stickyScroll.maxLineCount', !!value);
190+
}
191+
}
192+
});

0 commit comments

Comments
 (0)