Bug 1323308 - Add task definitions for vscode. r?gps
Add basic build task descriptions for the Microsoft
Visual Studio Code editor environment. Just calls
`mach build`, `mach build binaries`, `mach clobber`,
and `mach configure`.
Based on a file by Dan Glastonbury.
MozReview-Commit-ID: IeXjAUQyRRM
new file mode 100644
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,59 @@
+{
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
+ // for the documentation about the tasks.json format
+ "version": "0.1.0",
+ "command": "${workspaceRoot}/mach",
+ "isShellCommand": true,
+ "args": ["--log-no-times"],
+ "showOutput": "always",
+ "echoCommand": true,
+ "suppressTaskName": true,
+ "tasks": [
+ {
+ "taskName": "configure",
+ "isWatching": false,
+ "args": ["configure"]
+ },
+ {
+ "taskName": "build",
+ "isWatching": false,
+ "args": ["build"],
+ "problemMatcher": {
+ "owner": "cpp",
+ "fileLocation": "absolute",
+ "pattern": {
+ "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
+ "file": 1,
+ "line": 2,
+ "column": 3,
+ "severity": 4,
+ "message": 5
+ }
+ }
+ },
+ {
+ "taskName": "build binaries",
+ "showOutput": "always",
+ "isBuildCommand": true,
+ "isWatching": false,
+ "args": ["build", "binaries"],
+ "problemMatcher": {
+ "owner": "cpp",
+ "fileLocation": "absolute",
+ "pattern": {
+ "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
+ "file": 1,
+ "line": 2,
+ "column": 3,
+ "severity": 4,
+ "message": 5
+ }
+ }
+ },
+ {
+ "taskName": "clobber",
+ "isWatching": false,
+ "args": ["clobber"]
+ }
+ ]
+}