Allow test extensions to activate when test view is shown #132395
Labels
testing
Built-in testing support
under-discussion
Issue is under discussion for relevance, priority, approach
This came up in hbenl/vscode-test-explorer#226, but it is equally relevant for test extensions that use the native testing API directly.
It could make sense for test extensions to only activate when the user opens the test view (or calls a test command etc.) to save resources during VS Code startup. However with the native testing API this turns into a chicken-and-egg problem: the test icon (for opening the test view) isn't shown until the testing extension is activated, and the extension isn't activated until the test icon is clicked.
Perhaps VS Code could check if there is an installed extension that activates on
onView:workbench.view.testing
and always show the test icon in that case. Alternatively, a setting for making the test icon permanently visible (similar totestExplorer.hideWhen
) could be used.The text was updated successfully, but these errors were encountered: