Skip to content

Commit

Permalink
Bug 1377937 - Fix VSCode tasks on Windows (NPOTB, DONTBUILD). r=gps
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: FAZAFVEkk6G
  • Loading branch information
past committed Jul 3, 2017
1 parent f48cb7b commit d3e6bf2
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"osx": {
"command": "${workspaceRoot}/mach"
},
"linux": {
"command": "${workspaceRoot}/mach"
},
"isShellCommand": true,
"args": ["--log-no-times"],
"showOutput": "silent",
Expand All @@ -12,6 +20,11 @@
{
"taskName": "clobber"
},
{
"taskName": "clobber-python",
"suppressTaskName": true,
"args": ["clobber", "python"]
},
{
"taskName": "configure"
},
Expand All @@ -32,7 +45,9 @@
}
},
{
"taskName": "build binaries",
"taskName": "build-binaries",
"suppressTaskName": true,
"args": ["build", "binaries"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
Expand All @@ -47,7 +62,9 @@
}
},
{
"taskName": "build faster",
"taskName": "build-faster",
"suppressTaskName": true,
"args": ["build", "faster"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
Expand All @@ -66,12 +83,18 @@
"args": ["-purgecaches"],
"showOutput": "always"
},
{
"taskName": "lint-wo",
"suppressTaskName": true,
"args": ["lint", "-wo"],
"problemMatcher": ["$eslint-stylish"]
},
{
"taskName": "eslint",
"problemMatcher": ["$eslint-stylish"]
},
{
"taskName": "eslint fix",
"taskName": "eslint-fix",
"suppressTaskName": true,
"args": ["eslint", "--fix", "${file}"],
"problemMatcher": ["$eslint-stylish"]
Expand Down

0 comments on commit d3e6bf2

Please sign in to comment.