Bug 1594520 - Avoid duplication in .vscode/tasks.json r=jya

These options default to outer contexts so we don't need to repeat ourselves.
We were already setting the top level values anyways.

Differential Revision: https://phabricator.services.mozilla.com/D52081

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ted Campbell 2019-11-12 15:02:23 +00:00
Родитель 22a4932c7e
Коммит 4afcf63fce
1 изменённых файлов: 1 добавлений и 33 удалений

34
.vscode/tasks.json поставляемый
Просмотреть файл

@ -2,6 +2,7 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"type": "shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
@ -11,22 +12,15 @@
"tasks": [
{
"label": "clobber-python",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["clobber", "python"],
"problemMatcher": []
},
{
"label": "configure",
"type":"shell",
"problemMatcher": []
},
{
"label": "build",
"type":"shell",
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
@ -42,11 +36,6 @@
},
{
"label": "build-binaries",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["--log-no-times", "build", "binaries"],
"problemMatcher": {
"owner": "cpp",
@ -67,11 +56,6 @@
},
{
"label": "build-faster",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["--log-no-times", "build", "faster"],
"problemMatcher": {
"owner": "cpp",
@ -88,38 +72,25 @@
},
{
"label": "run",
"type":"shell",
"args": ["-purgecaches"],
"problemMatcher": []
},
{
"label": "lint-wo",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["lint", "-wo"],
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "eslint",
"type": "shell",
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "eslint-fix",
"type":"shell",
"command": "${workspaceRoot}/mach",
"windows": {
"command": "\"\\mozilla-build\\start-shell.bat mach\""
},
"args": ["eslint", "--fix", "${file}"],
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "test",
"type":"shell",
"args": ["${relativeFile}"],
"group":"test",
"presentation": {
@ -129,7 +100,6 @@
},
{
"label": "mochitest",
"type":"shell",
"args": ["${relativeFile}"],
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],
@ -147,7 +117,6 @@
},
{
"label": "reftest",
"type":"shell",
"args": ["${relativeFile}"],
"problemMatcher": {
"fileLocation": ["absolute"],
@ -165,7 +134,6 @@
},
{
"label": "xpcshell-test",
"type":"shell",
"args": ["${relativeFile}", "--sequential"],
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],