Bug 1594520 - Use workspaceFolder in .vscode/tasks.json r=jya
authorTed Campbell <tcampbell@mozilla.com>
Tue, 12 Nov 2019 12:54:10 +0000
changeset 501688 27ab68adb7d07cf04405396a8fd8b97fe0b67d1b
parent 501687 57a4794a87f25c62f04126350416dc498ac03584
child 501689 519ad74e9d7be8ea39e7c451cc346e04b7f7adb3
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1594520
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1594520 - Use workspaceFolder in .vscode/tasks.json r=jya The ${workspaceRoot} variable was deprecated when multi-folder workspaces were added to VSCode. Depends on D52082 Differential Revision: https://phabricator.services.mozilla.com/D52083
.vscode/tasks.json
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -1,14 +1,14 @@
 {
     // 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",
+    "command": "${workspaceFolder}/mach",
     "windows": {
       "command": "\"\\mozilla-build\\start-shell.bat mach\""
     },
     "args": ["--log-no-times"],
     "tasks": [
       {
         "label": "clobber",
         "args": ["clobber"],
@@ -104,17 +104,17 @@
             "reveal": "always",
             "panel": "new"
         }
       },
       {
         "label": "mochitest",
         "args": ["mochitest", "${relativeFile}"],
         "problemMatcher": {
-          "fileLocation": ["relative", "${workspaceRoot}"],
+          "fileLocation": ["relative", "${workspaceFolder}"],
           "pattern": {
               "regexp": "^.*\\s+(TEST-UNEXPECTED-FAIL|TEST-UNEXPECTED-PASS)\\s+\\|\\s+([^\\s]*)\\s+\\|\\s+(.*)$",
               "severity": 1,
               "file": 2,
               "message": 3
           }
         },
         "presentation": {
@@ -138,17 +138,17 @@
             "reveal": "always",
             "panel": "new"
         }
       },
       {
         "label": "xpcshell-test",
         "args": ["xpcshell-test", "${relativeFile}", "--sequential"],
         "problemMatcher": {
-          "fileLocation": ["relative", "${workspaceRoot}"],
+          "fileLocation": ["relative", "${workspaceFolder}"],
           "pattern": {
               "regexp": "^.*\\s+(FAIL|ERROR)\\s+\\[([^\\s]*)\\s+:\\s+(\\d+)\\]\\s+(.*)$",
               "severity": 1,
               "file": 2,
               "location": 3,
               "message": 4
           }
         },