Skip to content

Commit 4cddd62

Browse files
authored
Merge pull request microsoft#196656 from microsoft/roblou/urban-crocodile
Fix used references expand state
2 parents cd8dfd2 + 1941240 commit 4cddd62

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/vs/workbench/contrib/chat/browser/chatListRenderer.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,11 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
342342
}
343343

344344
templateData.detail.textContent = progressMsg;
345-
templateData.detail.title = element.slashCommand?.description ?? '';
345+
if (element.agent) {
346+
templateData.detail.title = progressMsg + (element.slashCommand?.description ? `\n${element.slashCommand.description}` : '');
347+
} else {
348+
templateData.detail.title = '';
349+
}
346350
}
347351

348352
private renderAvatar(element: ChatTreeItem, templateData: IChatListItemTemplate): void {

src/vs/workbench/contrib/chat/common/chatViewModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export class ChatResponseViewModel extends Disposable implements IChatResponseVi
328328
return this._usedReferencesExpanded;
329329
}
330330

331-
return !this.isComplete;
331+
return this.response.value.length === 0;
332332
}
333333

334334
set usedReferencesExpanded(v: boolean) {

0 commit comments

Comments
 (0)