{ "version": "2.0.0", "tasks": [ { "label": "build the appolo project", "type": "shell", // you can change the "build" option to others acording to the "apollo.sh" file "command": "bash apollo_docker.sh build", "group": { "kind": "build", "isDefault": true // default building task invoked by "Ctrl+Shift+B" }, // format the error message "problemMatcher": { "owner": "cc", "fileLocation": [ "relative", "${workspaceFolder}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } } }, { "label": "run all unit tests for the apollo project", "type": "shell", // you can change the "build" option to others acording to the "apollo.sh" file "command": "bash apollo_docker.sh test", // format the error message "problemMatcher": { "owner": "cc", "fileLocation": [ "relative", "${workspaceFolder}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } } }, { "label": "code style check for the apollo project", "type": "shell", // you can change the "build" option to others acording to the "apollo.sh" file "command": "bash apollo_docker.sh lint", // format the error message "problemMatcher": { "owner": "cc", "fileLocation": [ "relative", "${workspaceFolder}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } } }, { "label": "clean the apollo project", "type": "shell", // you can change the "build" option to others acording to the "apollo.sh" file "command": "bash apollo_docker.sh clean", // format the error message "problemMatcher": { "owner": "cc", "fileLocation": [ "relative", "${workspaceFolder}" ], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } } }, { "label": "start gdbserver", "type": "shell", // you can change the "planning" module name to another one and // change the "1111" to another port number. // Note: the module name and port number should be same as in // the "launch.json" file. "command": "bash docker/scripts/dev_start_gdb_server.sh planning 1111", "isBackground": true, "problemMatcher": { "owner": "custom", "pattern": { "regexp": "__________" }, "background": { "activeOnStart": true, "beginsPattern": "^Listening on port$", "endsPattern": "^$" } } } ] }