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

testing: use a real terminal in test Test Results view #184963

Merged
merged 12 commits into from
Jun 16, 2023

Conversation

connor4312
Copy link
Member

For #151964

Shows test output in a real terminal. Adds a new notion of a 'detached' XtermTerminal instance that's used to show a terminal here. It also wires up a subset of terminal commands to work in the terminal. Currently I have assumed such detached terminals will always be read-only.

@connor4312 connor4312 self-assigned this Jun 12, 2023
@connor4312 connor4312 requested a review from Tyriar June 12, 2023 23:54
@vscodenpa vscodenpa added this to the June 2023 milestone Jun 12, 2023
Comment on lines +376 to +378
if (e.browserEvent?.defaultPrevented) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

What's this change for? Worried about regressions

Copy link
Member Author

@connor4312 connor4312 Jun 15, 2023

Choose a reason for hiding this comment

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

xterm correctly calls .preventDefault() if a scroll event gets handled by the terminal, but this wasn't respected by the editor. This resulted in scrolling within the terminal when it's shown in the inline peek to scroll the editor when it should instead have just scrolled the terminal.

I'm guessing this is the first time we have something in the editor that manually handles scrolling, so this check was missing.

src/vs/workbench/contrib/testing/browser/media/testing.css Outdated Show resolved Hide resolved
src/vs/workbench/contrib/terminal/browser/terminal.ts Outdated Show resolved Hide resolved
@connor4312 connor4312 merged commit 0e9c2fa into main Jun 16, 2023
@connor4312 connor4312 deleted the testing-ansi-support branch June 16, 2023 04:47
@github-actions github-actions bot locked and limited conversation to collaborators Jul 31, 2023
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.

3 participants