|
| 1 | +{ |
| 2 | + // See https://go.microsoft.com/fwlink/?LinkId=733558 |
| 3 | + // for the documentation about the tasks.json format |
| 4 | + "version": "2.0.0", |
| 5 | + "inputs": [ |
| 6 | + { |
| 7 | + "id": "compilePattern", |
| 8 | + "description": "Compile pattern", |
| 9 | + "type": "promptString" |
| 10 | + } |
| 11 | + ], |
| 12 | + "problemMatcher": { |
| 13 | + "owner": "amxxpack", |
| 14 | + "fileLocation": ["relative", "${workspaceFolder}"], |
| 15 | + "background": { |
| 16 | + "activeOnStart": true, |
| 17 | + "beginsPattern": "File change detected. Starting incremental compilation...", |
| 18 | + "endsPattern": "Compilation complete. Watching for file changes." |
| 19 | + }, |
| 20 | + "pattern": [ |
| 21 | + { |
| 22 | + "regexp": "^\\[([0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}(?:(?:\\s)(?:AM|PM))?)\\]\\s+\\[(ERROR|WARNING)\\]\\s+(.*?):(\\d*)\\s+-\\s+(.*)\\s+:\\s+(.*)$", |
| 23 | + "severity": 2, |
| 24 | + "file": 3, |
| 25 | + "line": 4, |
| 26 | + "code": 5, |
| 27 | + "message": 6, |
| 28 | + "loop": true |
| 29 | + } |
| 30 | + ] |
| 31 | + }, |
| 32 | + "tasks": [ |
| 33 | + { |
| 34 | + "label": "AMXXPack Build", |
| 35 | + "type": "shell", |
| 36 | + "command": "npx amxxpack build", |
| 37 | + "group": { "kind": "build", "isDefault": false }, |
| 38 | + "icon": { "color": "terminal.ansiGreen", "id": "wrench" } |
| 39 | + }, |
| 40 | + { |
| 41 | + "label": "AMXXPack Watch", |
| 42 | + "type": "shell", |
| 43 | + "command": "npx amxxpack build --watch", |
| 44 | + "group": { "kind": "build", "isDefault": false }, |
| 45 | + "icon": { "color": "terminal.ansiGreen", "id": "eye-watch" }, |
| 46 | + "isBackground": true |
| 47 | + }, |
| 48 | + { |
| 49 | + "label": "AMXXPack Compile", |
| 50 | + "type": "shell", |
| 51 | + "command": "npx amxxpack compile *${input:compilePattern}*", |
| 52 | + "group": { "kind": "build", "isDefault": false }, |
| 53 | + "icon": { "color": "terminal.ansiGreen", "id": "run" } |
| 54 | + }, |
| 55 | + { |
| 56 | + "label": "AMXXPack Compile Current", |
| 57 | + "type": "shell", |
| 58 | + "command": "npx amxxpack compile ${fileBasename}", |
| 59 | + "group": { "kind": "build", "isDefault": false }, |
| 60 | + "icon": { "color": "terminal.ansiBlue", "id": "run" } |
| 61 | + } |
| 62 | + ] |
| 63 | +} |
0 commit comments