Skip to content
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

Cannot associate a problem matcher with an auto detected tasks #25518

Closed
egamma opened this issue Apr 27, 2017 · 3 comments
Closed

Cannot associate a problem matcher with an auto detected tasks #25518

egamma opened this issue Apr 27, 2017 · 3 comments
Assignees
Labels
feature-request Request for new features or functionality tasks Task system issues
Milestone

Comments

@egamma
Copy link
Member

egamma commented Apr 27, 2017

Testing #25299

I have a gruntfile with a linter task and I'd like to attach a problem matcher with the auto detected task. I haven't found a way to do so, e.g., I cannot generate a corresponding task.json from the gruntfile since all tasks are auto detected.

@egamma egamma added the feature-request Request for new features or functionality label Apr 27, 2017
@dbaeumer dbaeumer added this to the May 2017 milestone Apr 27, 2017
@dbaeumer
Copy link
Member

There are two different scenarios here:

  1. the generated task is specific to a tool (for example the Java extension generates a task to compile Java files). In this case the extension can already attach a problem matcher to the generated task
  2. the generated task is for a task runner (like gulp or grunt). In this case the code that generates the task can't attach a problem matcher. So we need to allow users to decorate the task in the tasks.json with a problem matcher.

@dbaeumer dbaeumer added the tasks Task system issues label Apr 27, 2017
@dbaeumer
Copy link
Member

dbaeumer commented May 19, 2017

This can now be done in version 2.0 by defining a task with no command and depends on. Something like this:

{
	"version": "2.0.0",
	"tasks": [
		{
			"taskName": "gulp: watch",
			"problemMatcher": "$tsc-watch"
		}
	]
}

@dbaeumer
Copy link
Member

I also supported all the legacy mechanism we had for 0.1.0 including jake auto detection and annotation.

@kieferrm kieferrm mentioned this issue May 19, 2017
44 tasks
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality tasks Task system issues
Projects
None yet
Development

No branches or pull requests

2 participants