mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-17 15:24:40 +01:00
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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user