Add GCC-based problem matcher to VS Code config
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kayomn 2022-09-30 19:36:33 +01:00
parent 67768eba7f
commit 9443d02de0
1 changed files with 51 additions and 21 deletions

72
.vscode/tasks.json vendored
View File

@ -1,24 +1,54 @@
{
"version": "2.0.0",
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "zig build",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Test",
"type": "shell",
"command": "zig build test",
"group": {
"kind": "test",
"isDefault": true
}
}
]
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "zig build",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": true,
"clear": true,
"revealProblems": "onProblem",
},
"problemMatcher": {
"source": "gcc",
"owner": "cpptools",
"fileLocation": [
"autoDetect",
"${cwd}",
],
"pattern": {
"regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
}
}
},
{
"label": "Test",
"type": "shell",
"command": "zig build test",
"group": {
"kind": "test",
"isDefault": true
},
},
],
}