I have project that uses custom problemMatcher
. But I would like to extract it into an extension making it configurable. So eventually it could be used in tasks.json
like
{
"problemMatcher": "$myCustomProblemMatcher"
}
How to do that?
I have project that uses custom problemMatcher
. But I would like to extract it into an extension making it configurable. So eventually it could be used in tasks.json
like
{
"problemMatcher": "$myCustomProblemMatcher"
}
How to do that?
As of VSCode 1.11.0 (March 2017), extensions can contribute problem matchers via
package.json
:Tasks can then reference it with
"problemMatcher": ["$name"]
($gcc
in the case of this example).Instead of defining a matcher's
pattern
inline, it can also contributed inproblemPatterns
so it's reusable (for instance if you want to use it in multiple matchers):