Fixes #22066: Allow extensions to contribute named problem matchers via package.json

This commit is contained in:
Dirk Baeumer
2017-03-14 12:06:58 +01:00
parent e140159192
commit f51220dbf7
8 changed files with 905 additions and 432 deletions

View File

@@ -365,6 +365,42 @@
"fileMatch": "typings.json",
"url": "http://json.schemastore.org/typings"
}
],
"problemPatterns": [
{
"name": "tsc",
"regexp": "^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(error|warning|info)\\s+(TS\\d+)\\s*:\\s*(.*)$",
"file": 1,
"location": 2,
"severity": 3,
"code": 4,
"message": 5
}
],
"problemMatchers": [
{
"name": "tsc",
"owner": "typescript",
"applyTo": "closedDocuments",
"fileLocation": ["relative", "$cwd"],
"pattern": "$tsc"
},
{
"name": "tsc-watch",
"owner": "typescript",
"applyTo": "closedDocuments",
"fileLocation": ["relative", "$cwd"],
"pattern": "$tsc",
"watching": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "^\\s*(?:message TS6032:|\\d{1,2}:\\d{1,2}:\\d{1,2}(?: AM| PM)? -) File change detected\\. Starting incremental compilation\\.\\.\\."
},
"endsPattern": {
"regexp": "^\\s*(?:message TS6042:|\\d{1,2}:\\d{1,2}:\\d{1,2}(?: AM| PM)? -) Compilation complete\\. Watching for file changes\\."
}
}
}
]
}
}
}