-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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 commands to get current selected tests/profiles #179065
Comments
You can test this by modifying the selfhost test provider extension |
@connor4312 Hello!
That is, in the include, I always get an array from one TestController object. This is fine? details: |
The second point, which completely prevents the use of this task as a workaround for this bug. If you clicked on a test case, didn't just run a click, and then run another test case, the result of the 'testing.getExplorerSelection' command will be the previous test case where the selector was left. And accordingly, if you had a filter, you will not see it in this command. I understand that, judging by the name of the command, this is exactly the behavior you wanted to get. But how then to get around the bug that I indicated above? |
Yea, that is by design
Well the bug just needs to be fixed, there's not a workaround available |
Expose API commands to get the currently selected tests and profiles
vscode.commands.executeCommand('testing.getSelectedProfiles')
->{ controllerId: string, kind: TestrunProfileKind, label: string }[]
vscode.commands.executeCommand('testing.getExplorerSelection')
->{ include: TestItem[], exclude: TestItem[] }
(like a TestRunRequest)The text was updated successfully, but these errors were encountered: