@@ -537,7 +537,8 @@ class SessionsRenderer extends Disposable implements ITreeRenderer<IChatSessionI
537
537
538
538
constructor (
539
539
private readonly labels : ResourceLabels ,
540
- @IThemeService private readonly themeService : IThemeService
540
+ @IThemeService private readonly themeService : IThemeService ,
541
+ @ILogService private readonly logService : ILogService ,
541
542
) {
542
543
super ( ) ;
543
544
@@ -585,7 +586,7 @@ class SessionsRenderer extends Disposable implements ITreeRenderer<IChatSessionI
585
586
586
587
this . appliedIconColorStyles . add ( styleKey ) ;
587
588
} else {
588
- console . log ( 'No color found for colorId:' , colorId ) ;
589
+ this . logService . debug ( 'No color found for colorId:' , colorId ) ;
589
590
}
590
591
}
591
592
@@ -665,6 +666,7 @@ class SessionsViewPane extends ViewPane {
665
666
@IHoverService hoverService : IHoverService ,
666
667
@IEditorService private readonly editorService : IEditorService ,
667
668
@IViewsService private readonly viewsService : IViewsService ,
669
+ @ILogService private readonly logService : ILogService ,
668
670
) {
669
671
super ( options , keybindingService , contextMenuService , configurationService , contextKeyService , viewDescriptorService , instantiationService , openerService , themeService , hoverService ) ;
670
672
@@ -698,14 +700,14 @@ class SessionsViewPane extends ViewPane {
698
700
}
699
701
700
702
const progressIndicator = this . getProgressIndicator ( ) ;
701
-
703
+
702
704
try {
703
705
// Show progress while refreshing tree data
704
706
const refreshPromise = this . tree . updateChildren ( this . provider ) ;
705
707
await progressIndicator . showWhile ( refreshPromise , 0 ) ; // Show immediately, no delay
706
708
} catch ( error ) {
707
709
// Log error but don't throw to avoid breaking the UI
708
- console . error ( 'Error refreshing chat sessions tree:' , error ) ;
710
+ this . logService . error ( 'Error refreshing chat sessions tree:' , error ) ;
709
711
}
710
712
}
711
713
@@ -719,14 +721,14 @@ class SessionsViewPane extends ViewPane {
719
721
}
720
722
721
723
const progressIndicator = this . getProgressIndicator ( ) ;
722
-
724
+
723
725
try {
724
726
// Show progress while loading data
725
727
const loadingPromise = this . tree . setInput ( this . provider ) ;
726
728
await progressIndicator . showWhile ( loadingPromise , 0 ) ; // Show immediately, no delay
727
729
} catch ( error ) {
728
730
// Log error but don't throw to avoid breaking the UI
729
- console . error ( 'Error loading chat sessions data:' , error ) ;
731
+ this . logService . error ( 'Error loading chat sessions data:' , error ) ;
730
732
}
731
733
}
732
734
@@ -742,7 +744,7 @@ class SessionsViewPane extends ViewPane {
742
744
this . dataSource = new SessionsDataSource ( this . provider ) ;
743
745
744
746
const delegate = new SessionsDelegate ( ) ;
745
- const renderer = new SessionsRenderer ( this . labels , this . themeService ) ;
747
+ const renderer = new SessionsRenderer ( this . labels , this . themeService , this . logService ) ;
746
748
this . _register ( renderer ) ;
747
749
748
750
this . tree = this . instantiationService . createInstance (
@@ -768,7 +770,7 @@ class SessionsViewPane extends ViewPane {
768
770
}
769
771
) as WorkbenchAsyncDataTree < IChatSessionItemProvider , IChatSessionItem , FuzzyScore > ;
770
772
771
- console . log ( 'Tree created with hideTwistiesOfChildlessElements: true' ) ;
773
+ this . logService . debug ( 'Tree created with hideTwistiesOfChildlessElements: true' ) ;
772
774
this . _register ( this . tree ) ;
773
775
774
776
// Handle double-click and keyboard selection to open editors
0 commit comments