@@ -521,18 +521,18 @@ class SessionsRenderer implements ICompressibleTreeRenderer<IDebugSession, Fuzzy
521521 }
522522
523523 renderElement ( element : ITreeNode < IDebugSession , FuzzyScore > , _ : number , data : ISessionTemplateData ) : void {
524- this . doRenderElement ( element . element , element . element . getLabel ( ) , createMatches ( element . filterData ) , data ) ;
524+ this . doRenderElement ( element . element , createMatches ( element . filterData ) , data ) ;
525525 }
526526
527527 renderCompressedElements ( node : ITreeNode < ICompressedTreeNode < IDebugSession > , FuzzyScore > , index : number , templateData : ISessionTemplateData , height : number | undefined ) : void {
528528 const lastElement = node . element . elements [ node . element . elements . length - 1 ] ;
529529 const matches = createMatches ( node . filterData ) ;
530- this . doRenderElement ( lastElement , node . element . elements [ 0 ] . getLabel ( ) , matches , templateData ) ;
530+ this . doRenderElement ( lastElement , matches , templateData ) ;
531531 }
532532
533- private doRenderElement ( session : IDebugSession , label : string , matches : IMatch [ ] , data : ISessionTemplateData ) : void {
533+ private doRenderElement ( session : IDebugSession , matches : IMatch [ ] , data : ISessionTemplateData ) : void {
534534 data . session . title = nls . localize ( { key : 'session' , comment : [ 'Session is a noun' ] } , "Session" ) ;
535- data . label . set ( label , matches ) ;
535+ data . label . set ( session . getLabel ( ) , matches ) ;
536536 const thread = session . getAllThreads ( ) . find ( t => t . stopped ) ;
537537
538538 const setActionBar = ( ) => {
0 commit comments