У меня такой task.json, кусок парсера просто гуглением откуда-то
выдрал. Но это винда. "version": "2.0.0",
    "taskDir": "${workspaceFolder}", //< the shell first changes pwd to this then executes command
            "options": {
                "cwd": "${workspaceFolder}",
            },
            "presentation": {
                "clear": true
            },
            "command": "make",
            "problemMatcher": {
                "base": "$gcc",
"fileLocation": ["relative", "${workspaceFolder}\\token"],
        "pattern": {
          "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
          "file": 1,
          "line": 2,
          "column": 3,
          "severity": 4,
          "message": 5
          }
            },
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "args": ["-j15" ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
        {
            "label": "clean",
            "type": "shell",
            "args": ["clean" ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
            
        },
        {
            "command": "\"C:/'Program Files'/SEGGER/JLink/JLink.exe\"  -CommanderScript cmd.jlk",
//            "command": "\"C:/'Program Files'/SEGGER/JLink/JLink.exe \"",
            "label": "prog",
            "type": "shell",
//            "args": [" -CommanderScript cmd.jlk" ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}