Skip to content

Commit 869469c

Browse files
author
aiday-mar
committed
changing the check in the migration
1 parent 5baf121 commit 869469c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,16 @@ registerEditorSettingMigration('quickSuggestions', (input, read, write) => {
174174
// Sticky Scroll
175175

176176
registerEditorSettingMigration('experimental.stickyScroll.enabled', (value, read, write) => {
177-
if (typeof value !== 'undefined') {
177+
if (typeof value === 'boolean') {
178178
write('experimental.stickyScroll.enabled', undefined);
179179
if (typeof read('stickyScroll.enabled') === 'undefined') {
180-
write('stickyScroll.enabled', !!value);
180+
write('stickyScroll.enabled', value);
181181
}
182182
}
183183
});
184184

185185
registerEditorSettingMigration('experimental.stickyScroll.maxLineCount', (value, read, write) => {
186-
if (typeof value !== 'undefined') {
186+
if (typeof value === 'number') {
187187
write('experimental.stickyScroll.maxLineCount', undefined);
188188
if (typeof read('stickyScroll.maxLineCount') === 'undefined') {
189189
write('stickyScroll.maxLineCount', value);

0 commit comments

Comments
 (0)