Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add table count to chat response's aria label #244923

Merged
merged 1 commit into from
Mar 27, 2025
Merged

add table count to chat response's aria label #244923

merged 1 commit into from
Mar 27, 2025

Conversation

meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Mar 27, 2025

Fix #230888

I had thought this was fixed bc confused the tree for table 🤦🏼‍♀️

Verified

This commit was signed with the committer’s verified signature.
KDKHD Kenneth Kreindler
@meganrogge meganrogge self-assigned this Mar 27, 2025
@meganrogge meganrogge added this to the March 2025 milestone Mar 27, 2025
@meganrogge meganrogge enabled auto-merge (squash) March 27, 2025 20:57
@@ -69,13 +82,13 @@ export class ChatAccessibilityProvider implements IListAccessibilityProvider<Cha
const codeBlockCount = marked.lexer(element.response.toString()).filter(token => token.type === 'code')?.length ?? 0;
switch (codeBlockCount) {
case 0:
label = accessibleViewHint ? localize('noCodeBlocksHint', "{0}{1}{2} {3}", toolInvocationHint, fileTreeCountHint, element.response.toString(), accessibleViewHint) : localize('noCodeBlocks', "{0} {1}", fileTreeCountHint, element.response.toString());
label = accessibleViewHint ? localize('noCodeBlocksHint', "{0}{1}{2}{3} {4}", toolInvocationHint, fileTreeCountHint, tableCountHint, element.response.toString(), accessibleViewHint) : localize('noCodeBlocks', "{0} {1}", fileTreeCountHint, element.response.toString());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably don't need to localize these strings that just have placeholders and no content :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do wonder if some spaces might get lost from the other localized strings though. I wouldn't count on trailing spaces to survive localization

@meganrogge meganrogge merged commit 91666d9 into main Mar 27, 2025
8 checks passed
@meganrogge meganrogge deleted the merogge/a1-fix branch March 27, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The table format isn’t captured in the accessible view: A11y_Visual Studio Code Client_Usability
2 participants