Bug 1594520 - Change directory before running mach in .vscode/tasks.json on Windows. r=jya

The build is quite fragile if the path to mach is not precisely
formatted. Work around this by cd-ing to the appropriate directory and
then calling 'mach' with a relative path. This mimics a normal user
workflow in mozilla-build.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ted Campbell 2019-11-14 10:35:12 +00:00
Родитель 3eef8ed573
Коммит 55b1cc6058
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -8,8 +8,12 @@
"windows": {
"command": "/mozilla-build/start-shell.bat",
"args": [
"cd",
// Use PowerShell to mangle path for mozilla-build environment
{"value": "$('${workspaceFolder}\\mach' -replace '\\\\','/')", "quoting": "weak"},
{"value": "$('${workspaceFolder}' -replace '\\\\','/')", "quoting": "weak"},
"';'",
"mach",
"--log-no-times"
]
},