diff --git a/.vscode/tasks.json b/.vscode/tasks.json index da242fd..eb31fd2 100755 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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 + }, + }, + ], }