@@ -183,7 +183,7 @@ function toWorkbenchListOptions<T>(options: IListOptions<T>, configurationServic
183
183
}
184
184
} ;
185
185
186
- result . smoothScrolling = configurationService . getValue < boolean > ( listSmoothScrolling ) ;
186
+ result . smoothScrolling = Boolean ( configurationService . getValue < boolean > ( listSmoothScrolling ) ) ;
187
187
188
188
return [ result , disposables ] ;
189
189
}
@@ -221,7 +221,7 @@ export class WorkbenchList<T> extends List<T> {
221
221
@IConfigurationService configurationService : IConfigurationService ,
222
222
@IKeybindingService keybindingService : IKeybindingService
223
223
) {
224
- const horizontalScrolling = typeof options . horizontalScrolling !== 'undefined' ? options . horizontalScrolling : configurationService . getValue < boolean > ( horizontalScrollingKey ) ;
224
+ const horizontalScrolling = typeof options . horizontalScrolling !== 'undefined' ? options . horizontalScrolling : Boolean ( configurationService . getValue < boolean > ( horizontalScrollingKey ) ) ;
225
225
const [ workbenchListOptions , workbenchListOptionsDisposable ] = toWorkbenchListOptions ( options , configurationService , keybindingService ) ;
226
226
227
227
super ( user , container , delegate , renderers ,
@@ -282,11 +282,11 @@ export class WorkbenchList<T> extends List<T> {
282
282
let options : IListOptionsUpdate = { } ;
283
283
284
284
if ( e . affectsConfiguration ( horizontalScrollingKey ) && this . horizontalScrolling === undefined ) {
285
- const horizontalScrolling = configurationService . getValue < boolean > ( horizontalScrollingKey ) ;
285
+ const horizontalScrolling = Boolean ( configurationService . getValue < boolean > ( horizontalScrollingKey ) ) ;
286
286
options = { ...options , horizontalScrolling } ;
287
287
}
288
288
if ( e . affectsConfiguration ( listSmoothScrolling ) ) {
289
- const smoothScrolling = configurationService . getValue < boolean > ( listSmoothScrolling ) ;
289
+ const smoothScrolling = Boolean ( configurationService . getValue < boolean > ( listSmoothScrolling ) ) ;
290
290
options = { ...options , smoothScrolling } ;
291
291
}
292
292
if ( Object . keys ( options ) . length > 0 ) {
@@ -348,7 +348,7 @@ export class WorkbenchPagedList<T> extends PagedList<T> {
348
348
@IConfigurationService configurationService : IConfigurationService ,
349
349
@IKeybindingService keybindingService : IKeybindingService
350
350
) {
351
- const horizontalScrolling = typeof options . horizontalScrolling !== 'undefined' ? options . horizontalScrolling : configurationService . getValue < boolean > ( horizontalScrollingKey ) ;
351
+ const horizontalScrolling = typeof options . horizontalScrolling !== 'undefined' ? options . horizontalScrolling : Boolean ( configurationService . getValue < boolean > ( horizontalScrollingKey ) ) ;
352
352
const [ workbenchListOptions , workbenchListOptionsDisposable ] = toWorkbenchListOptions ( options , configurationService , keybindingService ) ;
353
353
super ( user , container , delegate , renderers ,
354
354
{
@@ -394,11 +394,11 @@ export class WorkbenchPagedList<T> extends PagedList<T> {
394
394
let options : IListOptionsUpdate = { } ;
395
395
396
396
if ( e . affectsConfiguration ( horizontalScrollingKey ) && this . horizontalScrolling === undefined ) {
397
- const horizontalScrolling = configurationService . getValue < boolean > ( horizontalScrollingKey ) ;
397
+ const horizontalScrolling = Boolean ( configurationService . getValue < boolean > ( horizontalScrollingKey ) ) ;
398
398
options = { ...options , horizontalScrolling } ;
399
399
}
400
400
if ( e . affectsConfiguration ( listSmoothScrolling ) ) {
401
- const smoothScrolling = configurationService . getValue < boolean > ( listSmoothScrolling ) ;
401
+ const smoothScrolling = Boolean ( configurationService . getValue < boolean > ( listSmoothScrolling ) ) ;
402
402
options = { ...options , smoothScrolling } ;
403
403
}
404
404
if ( Object . keys ( options ) . length > 0 ) {
@@ -469,7 +469,7 @@ export class WorkbenchTable<TRow> extends Table<TRow> {
469
469
@IConfigurationService configurationService : IConfigurationService ,
470
470
@IKeybindingService keybindingService : IKeybindingService
471
471
) {
472
- const horizontalScrolling = typeof options . horizontalScrolling !== 'undefined' ? options . horizontalScrolling : configurationService . getValue < boolean > ( horizontalScrollingKey ) ;
472
+ const horizontalScrolling = typeof options . horizontalScrolling !== 'undefined' ? options . horizontalScrolling : Boolean ( configurationService . getValue < boolean > ( horizontalScrollingKey ) ) ;
473
473
const [ workbenchListOptions , workbenchListOptionsDisposable ] = toWorkbenchListOptions ( options , configurationService , keybindingService ) ;
474
474
475
475
super ( user , container , delegate , columns , renderers ,
@@ -531,11 +531,11 @@ export class WorkbenchTable<TRow> extends Table<TRow> {
531
531
let options : IListOptionsUpdate = { } ;
532
532
533
533
if ( e . affectsConfiguration ( horizontalScrollingKey ) && this . horizontalScrolling === undefined ) {
534
- const horizontalScrolling = configurationService . getValue < boolean > ( horizontalScrollingKey ) ;
534
+ const horizontalScrolling = Boolean ( configurationService . getValue < boolean > ( horizontalScrollingKey ) ) ;
535
535
options = { ...options , horizontalScrolling } ;
536
536
}
537
537
if ( e . affectsConfiguration ( listSmoothScrolling ) ) {
538
- const smoothScrolling = configurationService . getValue < boolean > ( listSmoothScrolling ) ;
538
+ const smoothScrolling = Boolean ( configurationService . getValue < boolean > ( listSmoothScrolling ) ) ;
539
539
options = { ...options , smoothScrolling } ;
540
540
}
541
541
if ( Object . keys ( options ) . length > 0 ) {
@@ -999,18 +999,18 @@ function workbenchTreeDataPreamble<T, TFilterData, TOptions extends IAbstractTre
999
999
1000
1000
const getAutomaticKeyboardNavigation = ( ) => {
1001
1001
// give priority to the context key value to disable this completely
1002
- let automaticKeyboardNavigation = contextKeyService . getContextKeyValue < boolean > ( WorkbenchListAutomaticKeyboardNavigationKey ) ;
1002
+ let automaticKeyboardNavigation = Boolean ( contextKeyService . getContextKeyValue < boolean > ( WorkbenchListAutomaticKeyboardNavigationKey ) ) ;
1003
1003
1004
1004
if ( automaticKeyboardNavigation ) {
1005
- automaticKeyboardNavigation = configurationService . getValue < boolean > ( automaticKeyboardNavigationSettingKey ) ;
1005
+ automaticKeyboardNavigation = Boolean ( configurationService . getValue < boolean > ( automaticKeyboardNavigationSettingKey ) ) ;
1006
1006
}
1007
1007
1008
1008
return automaticKeyboardNavigation ;
1009
1009
} ;
1010
1010
1011
1011
const accessibilityOn = accessibilityService . isScreenReaderOptimized ( ) ;
1012
1012
const keyboardNavigation = options . simpleKeyboardNavigation || accessibilityOn ? 'simple' : configurationService . getValue < string > ( keyboardNavigationSettingKey ) ;
1013
- const horizontalScrolling = options . horizontalScrolling !== undefined ? options . horizontalScrolling : configurationService . getValue < boolean > ( horizontalScrollingKey ) ;
1013
+ const horizontalScrolling = options . horizontalScrolling !== undefined ? options . horizontalScrolling : Boolean ( configurationService . getValue < boolean > ( horizontalScrollingKey ) ) ;
1014
1014
const [ workbenchListOptions , disposable ] = toWorkbenchListOptions ( options , configurationService , keybindingService ) ;
1015
1015
const additionalScrollHeight = options . additionalScrollHeight ;
1016
1016
@@ -1023,7 +1023,7 @@ function workbenchTreeDataPreamble<T, TFilterData, TOptions extends IAbstractTre
1023
1023
...workbenchListOptions ,
1024
1024
indent : configurationService . getValue < number > ( treeIndentKey ) ,
1025
1025
renderIndentGuides : configurationService . getValue < RenderIndentGuides > ( treeRenderIndentGuidesKey ) ,
1026
- smoothScrolling : configurationService . getValue < boolean > ( listSmoothScrolling ) ,
1026
+ smoothScrolling : Boolean ( configurationService . getValue < boolean > ( listSmoothScrolling ) ) ,
1027
1027
automaticKeyboardNavigation : getAutomaticKeyboardNavigation ( ) ,
1028
1028
simpleKeyboardNavigation : keyboardNavigation === 'simple' ,
1029
1029
filterOnType : keyboardNavigation === 'filter' ,
@@ -1120,7 +1120,7 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
1120
1120
newOptions = { ...newOptions , renderIndentGuides } ;
1121
1121
}
1122
1122
if ( e . affectsConfiguration ( listSmoothScrolling ) ) {
1123
- const smoothScrolling = configurationService . getValue < boolean > ( listSmoothScrolling ) ;
1123
+ const smoothScrolling = Boolean ( configurationService . getValue < boolean > ( listSmoothScrolling ) ) ;
1124
1124
newOptions = { ...newOptions , smoothScrolling } ;
1125
1125
}
1126
1126
if ( e . affectsConfiguration ( keyboardNavigationSettingKey ) ) {
@@ -1130,7 +1130,7 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
1130
1130
newOptions = { ...newOptions , automaticKeyboardNavigation : getAutomaticKeyboardNavigation ( ) } ;
1131
1131
}
1132
1132
if ( e . affectsConfiguration ( horizontalScrollingKey ) && options . horizontalScrolling === undefined ) {
1133
- const horizontalScrolling = configurationService . getValue < boolean > ( horizontalScrollingKey ) ;
1133
+ const horizontalScrolling = Boolean ( configurationService . getValue < boolean > ( horizontalScrollingKey ) ) ;
1134
1134
newOptions = { ...newOptions , horizontalScrolling } ;
1135
1135
}
1136
1136
if ( e . affectsConfiguration ( treeExpandMode ) && options . expandOnlyOnTwistieClick === undefined ) {
0 commit comments