Update chat row aria labels (#180182)

This commit is contained in:
Rob Lourens 2023-04-17 22:27:35 -07:00 committed by GitHub
parent 95396f14db
commit 4e45804466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -485,11 +485,15 @@ export class InteractiveSessionAccessibilityProvider implements IListAccessibili
getAriaLabel(element: InteractiveTreeItem): string {
if (isRequestVM(element)) {
return localize('interactiveRequest', "Request: {0}", element.messageText);
return element.messageText;
}
if (isResponseVM(element)) {
return localize('interactiveResponse', "Response: {0}", element.response.value);
return element.response.value;
}
if (isWelcomeVM(element)) {
return element.content.map(c => 'value' in c ? c.value : c.map(followup => followup.message).join('\n')).join('\n');
}
return '';