Make all build configurations show formatted errors in VS Code

This commit is contained in:
kayomn 2022-10-17 15:36:46 +01:00
parent 2a44f5bf11
commit 9f411025a7
2 changed files with 20 additions and 20 deletions

View File

@ -14,5 +14,5 @@
"git.detectSubmodulesLimit": 0, "git.detectSubmodulesLimit": 0,
"git.ignoreSubmodules": true, "git.ignoreSubmodules": true,
"debug.onTaskErrors": "abort", "debug.onTaskErrors": "showErrors",
} }

38
.vscode/tasks.json vendored
View File

@ -1,6 +1,25 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"problemMatcher": {
"source": "zig",
"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,
}
},
"tasks": [ "tasks": [
{ {
"label": "Build Debug", "label": "Build Debug",
@ -21,25 +40,6 @@
"clear": true, "clear": true,
"revealProblems": "onProblem", "revealProblems": "onProblem",
}, },
"problemMatcher": {
"source": "zig",
"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": "Build Test", "label": "Build Test",