[internal] Add problem matcher for Zig

This commit is contained in:
Jarred Sumner
2024-11-25 04:43:58 -08:00
parent 9cbe1ec300
commit 812288eb72

89
.vscode/tasks.json vendored
View File

@@ -2,50 +2,57 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"type": "process",
"label": "Install Dependencies",
"command": "scripts/all-dependencies.sh",
"windows": {
"command": "scripts/all-dependencies.ps1",
},
"icon": {
"id": "arrow-down",
},
"options": {
"cwd": "${workspaceFolder}",
},
},
{
"type": "process",
"label": "Setup Environment",
"dependsOn": ["Install Dependencies"],
"command": "scripts/setup.sh",
"windows": {
"command": "scripts/setup.ps1",
},
"icon": {
"id": "check",
},
"options": {
"cwd": "${workspaceFolder}",
},
},
{
"type": "process",
"label": "Build Bun", "label": "Build Bun",
"dependsOn": ["Setup Environment"], "type": "shell",
"command": "bun", "command": "bun run build",
"args": ["run", "build"], "group": {
"icon": { "kind": "build",
"id": "gear", "isDefault": true,
}, },
"options": { "problemMatcher": [
"cwd": "${workspaceFolder}", {
"owner": "zig",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": [
{
"regexp": "^(.+?):(\\d+):(\\d+): (error|warning|note): (.+)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
}, },
"isBuildCommand": true, {
"runOptions": { "regexp": "^\\s+(.+)$",
"instanceLimit": 1, "message": 1,
"reevaluateOnRerun": true, "loop": true,
},
],
},
{
"owner": "clang",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": [
{
"regexp": "^([^:]+):(\\d+):(\\d+):\\s+(warning|error|note|remark):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
},
{
"regexp": "^\\s*(.*)$",
"message": 1,
"loop": true,
},
],
},
],
"presentation": {
"reveal": "always",
"panel": "shared",
"clear": true,
}, },
}, },
], ],