Merge pull request #7493 from wjandrea/patch-1

tasks.md: add `source` property to `problemMatcher`
This commit is contained in:
Nick Trogh 2024-09-13 16:44:56 +02:00 коммит произвёл GitHub
Родитель af89772d56 449ec11025
Коммит 2c2920691c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -639,6 +639,8 @@ A matcher that captures the above warning (and errors) looks like this:
"owner": "cpp",
// The file name for reported problems is relative to the opened folder.
"fileLocation": ["relative", "${workspaceFolder}"],
// The name that will be shown as the source of the problem.
"source": "gcc",
// The actual pattern to match problems in the output.
"pattern": {
// The regular expression. Example to match: helloWorld.c:5:3: warning: implicit declaration of function printf [-Wimplicit-function-declaration]
@ -672,6 +674,7 @@ Here is a finished `tasks.json` file with the code above (comments removed) wrap
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceFolder}"],
"source": "gcc",
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,