File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -555,12 +555,11 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
555
555
}
556
556
557
557
templateData . checkpointToolbar . context = element ;
558
- const isLockedToCodingAgent = ChatContextKeys . lockedToCodingAgent . getValue ( templateData . contextKeyService ) ;
559
- templateData . checkpointContainer . classList . toggle ( 'hidden' , isResponseVM ( element ) || ! this . configService . getValue < boolean > ( ChatConfiguration . CheckpointsEnabled ) || isLockedToCodingAgent ) ;
560
-
561
558
const checkpointEnabled = this . configService . getValue < boolean > ( ChatConfiguration . CheckpointsEnabled )
562
559
&& ( this . rendererOptions . restorable ?? true ) ;
563
560
561
+ templateData . checkpointContainer . classList . toggle ( 'hidden' , isResponseVM ( element ) || ! ( checkpointEnabled ) ) ;
562
+
564
563
// Only show restore container when we have a checkpoint and not editing
565
564
const shouldShowRestore = this . viewModel ?. model . checkpoint && ! this . viewModel ?. editing && ( index === this . delegate . getListLength ( ) - 1 ) ;
566
565
templateData . checkpointRestoreContainer . classList . toggle ( 'hidden' , ! ( shouldShowRestore && checkpointEnabled ) ) ;
You can’t perform that action at this time.
0 commit comments