Commit b426cf9b authored by Dan Harrington's avatar Dan Harrington Committed by Commit Bot

Update example vscode tasks

- Try to make the tasks more general purpose.
  * Add mechanism to switch output directories. Most
    tasks will work with this value.
  * Add tasks to run tests for the current file or directory
    instead of pre-determined targets.
- Try to simplify it.
  * Remove some parameters which are defaults
  * Move pattern matches to top-level, to avoid duplicates.

Change-Id: Ifff15bc264be510c0859e4adcce7b996349ac343
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2402189Reviewed-by: default avatarChase Phillips <cmp@chromium.org>
Commit-Queue: Chase Phillips <cmp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805872}
parent 8d80e246
......@@ -259,12 +259,12 @@ in the Explorer tab) is chromium/src. If this is not the case, replace any
references to ${workspaceFolder} with the path to chromium/src.
### Tasks
Next, we'll tell VS Code how to compile our code and how to read warnings and
errors from the build output. Open the file
[//tools/vscode/tasks.json5](/tools/vscode/tasks.json5). This will provide 5
tasks to do basic things. You might have to adjust the commands to your
situation and needs. To use these settings wholesale, enter the following
command into your terminal:
Next, we'll tell VS Code how to compile our code, run tests, and to read
warnings and errors from the build output. Open the file
[//tools/vscode/tasks.json5](/tools/vscode/tasks.json5). This will provide tasks
to do basic things. You might have to adjust the commands to your situation and
needs. To use these settings wholesale, enter the following command into your
terminal:
```
$ cp tools/vscode/tasks.json5 .vscode/tasks.json
```
......
......@@ -8,7 +8,7 @@
"targetArchitecture": "x64",
"program": "${workspaceRoot}/out/Debug/chrome",
"args": [], // Optional command line args
"preLaunchTask": "1-build_chrome_debug",
"preLaunchTask": "6-build_chrome_debug",
"stopAtEntry": false,
"cwd": "${workspaceRoot}/out/Debug/",
"environment": [],
......@@ -35,7 +35,7 @@
"targetArchitecture": "x64",
"program": "${workspaceRoot}/out/Release/chrome",
"args": [], // Optional command line args
"preLaunchTask": "2-build_chrome_release",
"preLaunchTask": "7-build_chrome_release",
"stopAtEntry": false,
"cwd": "${workspaceRoot}/out/Release/",
"environment": [],
......@@ -53,7 +53,7 @@
"--ui-test-action-max-timeout=1000000",
"--test-launcher-timeout=1000000"
],
"preLaunchTask": "5-build_test_debug",
"preLaunchTask": "8-build_test_debug",
"stopAtEntry": false,
"cwd": "${workspaceRoot}/out/Debug/",
"environment": [],
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment