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

Support SGR ANSI escape sequences in TestRun.appendOutput API #151964

Closed
Tyriar opened this issue Jun 13, 2022 · 0 comments · Fixed by #185405
Closed

Support SGR ANSI escape sequences in TestRun.appendOutput API #151964

Tyriar opened this issue Jun 13, 2022 · 0 comments · Fixed by #185405
Assignees
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders on-testplan testing Built-in testing support
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Jun 13, 2022

This is a request for actual support for #148397, instead of just stripping the sequences. This would depend on #151963

image

@connor4312 connor4312 added feature-request Request for new features or functionality testing Built-in testing support labels Jun 13, 2022
@connor4312 connor4312 added this to the Backlog milestone Jun 13, 2022
connor4312 added a commit that referenced this issue Feb 25, 2023
Previously, as in the issue this fixes #175377, messages without
location were treated a little strangely, and messages for tests without
a location were impossible to view. Them transient nature of the peek
has been a longstanding overall experience papercut.

This PR adds a Test Results panel which users can keep around as a
persistent results view. It shares the code used to generate the peek
view. With this PR, I've also tweaked it slightly so that the test
'history' is by default (unless toggled on) shown only in the panel,
aligning the test errors peek more towards the diagnostics view, where
the peek is a lighter, local view, and the panel shows everything.

The only real 'addition' to the previously-peek content in this PR is
that test output is shown when the top-level run node is selected.
_Ideally_ this would be in a terminal where full ANSI codes and colors
are supported, but it seems terminal land does not support this very
well, and I want to eventually get ANSI color support in text mode
anyway (#151964).
connor4312 added a commit that referenced this issue Feb 25, 2023
Previously, as in the issue this fixes #175377, messages without
location were treated a little strangely, and messages for tests without
a location were impossible to view. Them transient nature of the peek
has been a longstanding overall experience papercut.

This PR adds a Test Results panel which users can keep around as a
persistent results view. It shares the code used to generate the peek
view. With this PR, I've also tweaked it slightly so that the test
'history' is by default (unless toggled on) shown only in the panel,
aligning the test errors peek more towards the diagnostics view, where
the peek is a lighter, local view, and the panel shows everything.

The only real 'addition' to the previously-peek content in this PR is
that test output is shown when the top-level run node is selected.
_Ideally_ this would be in a terminal where full ANSI codes and colors
are supported, but it seems terminal land does not support this very
well, and I want to eventually get ANSI color support in text mode
anyway (#151964).
connor4312 added a commit that referenced this issue Jun 17, 2023
Remove the old "test output terminal" stuff now that we use real
terminals for showing output in the Test Results view. Move the "Show
Output" buttons to reveal the Test Results view instead of opening
the terminal.

Closes #151964
connor4312 added a commit that referenced this issue Jun 17, 2023
Remove the old "test output terminal" stuff now that we use real
terminals for showing output in the Test Results view. Move the "Show
Output" buttons to reveal the Test Results view instead of opening
the terminal.

Closes #151964
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Jun 17, 2023
@rzhao271 rzhao271 modified the milestones: Backlog, June 2023 Jun 26, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders on-testplan testing Built-in testing support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@Tyriar @connor4312 @rzhao271 @VSCodeTriageBot and others