[Bug] - Test tasks shouldn't be triggered by build command (vice versa) #154064
Labels
bug
Issue identified by VS Code Team member as probable bug
insiders-released
Patch has been released in VS Code Insiders
tasks
Task system issues
verified
Verification succeeded
Milestone
Does this issue occur when all extensions are disabled?: Yes
I worked on the feature to introduce globs on tasks along with alexr00.
However I've noticed currently I am running a test task when trying to build the project which is wrong. This behaviour is unexpected and was not possible before globs were introduced. It shouldn't be possible to execute a test task from a build command, or a build task from a test command.
Test Case
main.test.js
Tasks: Run Build Task
What happens
The task glob for
kind: test
executesWhat's expected
The build task should execute because that's the only build task in the list of tasks so becomes the default as specified here
I didn't run
Tasks: Run Test Task
so the test task should not have executedHey @alexr00 I think one of your refactoring changes may have introduced this, is this something you're able to fix?
The text was updated successfully, but these errors were encountered: