Skip to content

Add a button to swap the "Actual" and "Expected" in the test results panel #314966

@GoodbyeNJN

Description

@GoodbyeNJN

Related: vitest-dev/vscode#783

In the test result panel shown using vscode.TestMessage.diff(error.message, error.expected, error.actual), the diff view is always "Expected" on the left and "Actual" on the right. As shown in the image in the linked issue, it would be more reasonable to swap the display of the "Expected" and "Actual" tabs, which the extension itself cannot achieve.

Therefore, we request that VSCode add a swap button or an equivalent setting to control the display logic here.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitytestingBuilt-in testing support

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions