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