fix double shimmer when chat is getting ready and fix tool call icons (#298083)

* fix double shimmer when chat is getting ready

* fix padding

* fix double spinner

* remove list renderer changes
This commit is contained in:
Justin Chen
2026-02-26 18:17:45 -08:00
committed by GitHub
parent a042a1cef0
commit 9ceb219f2e
3 changed files with 5 additions and 3 deletions

View File

@@ -67,7 +67,8 @@ export class ChatProgressContentPart extends Disposable implements IChatContentP
alert(progress.content.value);
}
const isLoadingIcon = icon && ThemeIcon.isEqual(icon, ThemeIcon.modify(Codicon.loading, 'spin'));
const useShimmer = shimmer ?? ((!icon || isLoadingIcon) && this.showSpinner);
// Even if callers request shimmer, only the active (spinner-visible) progress row should animate.
const useShimmer = (shimmer ?? (!icon || isLoadingIcon)) && this.showSpinner;
// if we have shimmer, don't show spinner
const codicon = useShimmer ? Codicon.check : (icon ?? (this.showSpinner ? ThemeIcon.modify(Codicon.loading, 'spin') : Codicon.check));
const result = this.chatContentMarkdownRenderer.render(progress.content);

View File

@@ -66,7 +66,8 @@ export function getToolInvocationIcon(toolId: string): ThemeIcon {
if (
lowerToolId.includes('edit') ||
lowerToolId.includes('create')
lowerToolId.includes('create') ||
lowerToolId.includes('replace')
) {
return Codicon.pencil;
}

View File

@@ -184,7 +184,7 @@
}
.chat-thinking-tool-wrapper .chat-markdown-part.rendered-markdown {
padding: 5px 12px 4px 20px;
padding: 5px 12px 4px 24px;
.status-icon.codicon-check {
display: none;