mirror of
https://github.com/Microsoft/vscode
synced 2024-10-06 03:17:00 +00:00
Update chat row aria labels (#180182)
This commit is contained in:
parent
95396f14db
commit
4e45804466
|
@ -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 '';
|
||||
|
|
Loading…
Reference in a new issue