remove headers and replace with checkmark for now (#277759)

* remove headers and replace with checkmark for now

* fix comments
This commit is contained in:
Justin Chen
2025-11-16 20:41:28 -08:00
committed by GitHub
parent 6ced22dd1c
commit 04f01181a8
2 changed files with 15 additions and 1 deletions

View File

@@ -693,8 +693,10 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
private renderConfirmationAction(element: IChatRequestViewModel, templateData: IChatListItemTemplate) {
dom.clearNode(templateData.detail);
if (element.confirmation) {
templateData.detail.textContent = localize('chatConfirmationAction', 'selected "{0}"', element.confirmation);
dom.append(templateData.detail, $('span.codicon.codicon-check', { 'aria-hidden': 'true' }));
dom.append(templateData.detail, $('span.confirmation-text', undefined, localize('chatConfirmationAction', 'Selected "{0}"', element.confirmation)));
templateData.header?.classList.remove('header-disabled');
templateData.header?.classList.add('partially-disabled');
}
}

View File

@@ -78,6 +78,7 @@
font-size: var(--vscode-chat-font-size-body-s);
color: var(--vscode-descriptionForeground);
overflow: hidden;
margin-left: 4px;
}
.interactive-item-container .detail-container .detail .agentOrSlashCommandDetected A {
@@ -2487,6 +2488,17 @@ have to be updated for changes to the rules above, or to support more deeply nes
display: none;
}
.interactive-request .header.partially-disabled .avatar-container,
.interactive-request .header.partially-disabled .username {
display: none;
}
.interactive-item-container .header .detail .codicon-check {
margin-right: 7px;
vertical-align: middle;
font-size: 11px;
}
.request-hover {
position: absolute;
overflow: hidden;