mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-04 01:44:44 -06:00
fix working spinner not showing up (#283798)
* fix working spinner not showing up * remove whitespace * remove extra thinking part check
This commit is contained in:
parent
98a4b07a23
commit
5bf98dbfca
@ -769,7 +769,11 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
|
||||
|
||||
const collapsedToolsMode = this.configService.getValue<CollapsedToolsDisplayMode>('chat.agent.thinking.collapsedTools');
|
||||
|
||||
if (collapsedToolsMode === CollapsedToolsDisplayMode.Always || (collapsedToolsMode === CollapsedToolsDisplayMode.WithThinking && this.getLastThinkingPart(templateData.renderedParts))) {
|
||||
const lastThinking = this.getLastThinkingPart(templateData.renderedParts);
|
||||
|
||||
if (lastThinking &&
|
||||
(collapsedToolsMode === CollapsedToolsDisplayMode.Always ||
|
||||
collapsedToolsMode === CollapsedToolsDisplayMode.WithThinking)) {
|
||||
if (!lastPart || lastPart.kind === 'thinking' || lastPart.kind === 'toolInvocation' || lastPart.kind === 'prepareToolInvocation' || lastPart.kind === 'textEditGroup' || lastPart.kind === 'notebookEditGroup') {
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user