@@ -45,16 +45,19 @@ export class OutlineIdentityProvider implements IIdentityProvider<OutlineItem> {
4545
4646export class OutlineGroupTemplate {
4747 static id = 'OutlineGroupTemplate' ;
48-
49- labelContainer : HTMLElement ;
50- label : HighlightedLabel ;
48+ constructor (
49+ readonly labelContainer : HTMLElement ,
50+ readonly label : HighlightedLabel ,
51+ ) { }
5152}
5253
5354export class OutlineElementTemplate {
5455 static id = 'OutlineElementTemplate' ;
55- container : HTMLElement ;
56- iconLabel : IconLabel ;
57- decoration : HTMLElement ;
56+ constructor (
57+ readonly container : HTMLElement ,
58+ readonly iconLabel : IconLabel ,
59+ readonly decoration : HTMLElement ,
60+ ) { }
5861}
5962
6063export class OutlineVirtualDelegate implements IListVirtualDelegate < OutlineItem > {
@@ -80,7 +83,7 @@ export class OutlineGroupRenderer implements ITreeRenderer<OutlineGroup, FuzzySc
8083 const labelContainer = dom . $ ( '.outline-element-label' ) ;
8184 dom . addClass ( container , 'outline-element' ) ;
8285 dom . append ( container , labelContainer ) ;
83- return { labelContainer, label : new HighlightedLabel ( labelContainer , true ) } ;
86+ return new OutlineGroupTemplate ( labelContainer , new HighlightedLabel ( labelContainer , true ) ) ;
8487 }
8588
8689 renderElement ( node : ITreeNode < OutlineGroup , FuzzyScore > , index : number , template : OutlineGroupTemplate ) : void {
@@ -109,7 +112,7 @@ export class OutlineElementRenderer implements ITreeRenderer<OutlineElement, Fuz
109112 const iconLabel = new IconLabel ( container , { supportHighlights : true } ) ;
110113 const decoration = dom . $ ( '.outline-element-decoration' ) ;
111114 container . appendChild ( decoration ) ;
112- return { container, iconLabel, decoration } ;
115+ return new OutlineElementTemplate ( container , iconLabel , decoration ) ;
113116 }
114117
115118 renderElement ( node : ITreeNode < OutlineElement , FuzzyScore > , index : number , template : OutlineElementTemplate ) : void {
0 commit comments