Open josh-stoddard-tanium opened 5 years ago
(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
This is only possible using an extension. You can provide an extension that contributes problem matchers which then can be referenced via a string. See https://marketplace.visualstudio.com/items?itemName=eamodio.tsl-problem-matcher as an example.
Keeping the issue open to be able to do the same in tasks.json
files.
How are problemmatcher conflicts resolved (i.e. two ProblemMatchers having the same name) at the moment?
The extension that got parsed last wins. In this regard it might not be obvious for the user.
I would find this especially useful in a monorepo. e.g. an Angular repo with many projects where the same task would be reused across each project except with a different base path.
This feature request is open since 2018, will it be addressed anytime soon?
I also think that this would be a great addition!
A nice solution for this would be to allow specifying problem matchers from a JSON file, ideally matching the GitHub format: https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md
I have several related tasks that share a custom output format. I'd like to be able to define a problem matcher for this format once and reference it in multiple tasks like I can for built-in matchers, eg.
"problemMatcher": "$my-matcher"
.