Bug 1323308 - Add task definitions for vscode. r?gps draft
authorRalph Giles <giles@mozilla.com>
Tue, 13 Dec 2016 13:46:12 -0800
changeset 449668 d1d790d6e0f83957741588fa8ee8e2601c9ae2e0
parent 449667 485451169bbc08d1f82a268c63aa6a5331e050de
child 449669 524d28b2319cb96f6f7ef48141a86a4532dbe68a
push id38617
push userbmo:giles@thaumas.net
push dateWed, 14 Dec 2016 18:01:07 +0000
reviewersgps
bugs1323308
milestone53.0a1
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
.vscode/tasks.json
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"]
+      }
+    ]
+}