@@ -182,6 +182,7 @@ export class CollapsibleListPool extends Disposable {
182
182
constructor (
183
183
private _onDidChangeVisibility : Event < boolean > ,
184
184
private readonly menuId : MenuId | undefined ,
185
+ private readonly options : { enableFileDecorations ?: boolean } | undefined ,
185
186
@IInstantiationService private readonly instantiationService : IInstantiationService ,
186
187
@IThemeService private readonly themeService : IThemeService ,
187
188
@ILabelService private readonly labelService : ILabelService ,
@@ -215,7 +216,7 @@ export class CollapsibleListPool extends Disposable {
215
216
'ChatListRenderer' ,
216
217
container ,
217
218
new CollapsibleListDelegate ( ) ,
218
- [ this . instantiationService . createInstance ( CollapsibleListRenderer , resourceLabels , this . menuId ) ] ,
219
+ [ this . instantiationService . createInstance ( CollapsibleListRenderer , resourceLabels , this . menuId , this . options ) ] ,
219
220
{
220
221
alwaysConsumeMouseWheel : false ,
221
222
accessibilityProvider : {
@@ -304,6 +305,7 @@ class CollapsibleListRenderer implements IListRenderer<IChatCollapsibleListItem,
304
305
constructor (
305
306
private labels : ResourceLabels ,
306
307
private menuId : MenuId | undefined ,
308
+ private options : { enableFileDecorations ?: boolean } | undefined ,
307
309
@IThemeService private readonly themeService : IThemeService ,
308
310
@IChatVariablesService private readonly chatVariablesService : IChatVariablesService ,
309
311
@IProductService private readonly productService : IProductService ,
@@ -383,7 +385,7 @@ class CollapsibleListRenderer implements IListRenderer<IChatCollapsibleListItem,
383
385
templateData . label . setFile ( uri , {
384
386
fileKind : FileKind . FILE ,
385
387
// Should not have this live-updating data on a historical reference
386
- fileDecorations : { badges : false , colors : false } ,
388
+ fileDecorations : this . options ?. enableFileDecorations ? { badges : true , colors : true } : { badges : false , colors : false } ,
387
389
range : 'range' in reference ? reference . range : undefined ,
388
390
title : data . options ?. status ?. description ?? data . title
389
391
} ) ;
0 commit comments