-
Notifications
You must be signed in to change notification settings - Fork 33.9k
[WIP] Notebook Variables aria label doesn't update #250786
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
Conversation
@copilot can you try again? |
… notebook and REPL Co-authored-by: amunger <2019016+amunger@users.noreply.github.com>
I've fixed the issue by making the aria label dynamic. The NotebookVariableAccessibilityProvider now updates its aria label when switching between notebook and REPL variables, ensuring screen readers announce the correct context. The fix is in commit bb3f1f8. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
getWidgetAriaLabel(): string { | ||
return localize('debugConsole', "Notebook Variables"); | ||
return this.widgetAriaLabel; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot This getter is only called once, so we need to use an IObservable, then the update method will just update the value of that observable.
The observable interface is in src\vs\workbench\contrib\notebook\browser\contrib\notebookVariables\notebookVariablesTree.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the implementation to use an observable pattern. The NotebookVariableAccessibilityProvider now uses observableValue
for the widget aria label, and I've set up an autorun in the view to watch the observable and update the tree's aria label when it changes. The fix is in commit b54a699.
Co-authored-by: amunger <2019016+amunger@users.noreply.github.com>
Co-authored-by: amunger <2019016+amunger@users.noreply.github.com>
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.
Original issue description:
Fixes #242545.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.