Skip to content

[Bug] - Test tasks shouldn't be triggered by build command (vice versa) #154064

@jasonwilliams

Description

@jasonwilliams

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.68.1
  • OS Version: MacOS 12.4

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

What happens

The task glob for kind: test executes

What'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 executed

Hey @alexr00 I think one of your refactoring changes may have introduced this, is this something you're able to fix?

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsiderstasksTask system issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions