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 debug console accessible view #221398

Merged
merged 15 commits into from
Jul 11, 2024
Merged

add debug console accessible view #221398

merged 15 commits into from
Jul 11, 2024

Conversation

meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Jul 10, 2024

fixes #213413

Remaining work to tackle in different PR / seeking feedback from users:

  • if possible, support opening the accessible view to the line where the user was in the debug console (disabling line wrapping in the accessible view might be necessary for this)
  • determine if we should indent child content - (again, makes more sense if line wrapping is disabled)
  • enable debug.autoExpandLazyVariables for screen reader users by default

@meganrogge meganrogge self-assigned this Jul 10, 2024
@meganrogge meganrogge added this to the July 2024 milestone Jul 10, 2024
Co-authored-by: Connor Peet <connor@peet.io>
Copy link
Member

@connor4312 connor4312 left a comment

Choose a reason for hiding this comment

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

lgtm!

@meganrogge meganrogge enabled auto-merge (squash) July 11, 2024 20:28
@meganrogge meganrogge merged commit 4dc29b5 into main Jul 11, 2024
6 checks passed
@meganrogge meganrogge deleted the merogge/debug-view branch July 11, 2024 20:30
@meganrogge
Copy link
Contributor Author

cc @roblourens

let line = 0;
const content: string[] = [];
for (const e of elements) {
content.push(e.toString().replace(/\n/g, ''));
Copy link
Member

@roblourens roblourens Jul 15, 2024

Choose a reason for hiding this comment

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

You might want to escape the newline rather than remove it, so they know there was a newline here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure an empty line is useful to know about. It was messing up the line numbers. We'll see what testers and users say

Copy link
Member

Choose a reason for hiding this comment

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

You can keep it a single line, I mean printing a\nb instead of ab which is deleting information

@@ -639,7 +656,7 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget {
new ReplRawObjectsRenderer(linkDetector, this.hoverService),
],
// https://github.com/microsoft/TypeScript/issues/32526
new ReplDataSource() satisfies IAsyncDataSource<IDebugSession, IReplElement>,
this.replDataSource,
Copy link
Member

Choose a reason for hiding this comment

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

Comment is now obsolete

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Aug 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add accessible view for debug console
3 participants