Skip to content

Commit d0bff74

Browse files
committed
More useful tooltip for agent
Fix microsoft/vscode-copilot#2387
1 parent a35d42b commit d0bff74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
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 {

0 commit comments

Comments
 (0)