Skip to content

add debug console accessible view - #221398

Merged
Megan Rogge (meganrogge) merged 15 commits into
mainfrom
merogge/debug-view
Jul 11, 2024
Merged

Megan Rogge (meganrogge) merged 15 commits into
mainfrom
merogge/debug-view

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Jul 10, 2024 •

Copy link
Copy Markdown
Collaborator

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

@connor4312 Connor Peet (connor4312) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm!

@meganrogge
Megan Rogge (meganrogge) enabled auto-merge (squash) July 11, 2024 20:28
@meganrogge
Megan Rogge (meganrogge) deleted the merogge/debug-view branch July 11, 2024 20:30
@meganrogge

Copy link
Copy Markdown
Collaborator Author

cc roblourens

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

@roblourens roblourens Jul 15, 2024 •

Copy link
Copy Markdown
Member

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
Copy Markdown
Collaborator 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
Copy Markdown
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

],
// https://github.com/microsoft/TypeScript/issues/32526
new ReplDataSource() satisfies IAsyncDataSource<IDebugSession, IReplElement>,
this.replDataSource,

Copy link
Copy Markdown
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