Skip to content

Commit

Permalink
Add VSCode tasks for bazel clean operations
Browse files Browse the repository at this point in the history
Adds `bazel clean` and `bazel clean --expunge` tasks to tasks.json.

Fixes a typo for the fastbuild compilation mode task.
  • Loading branch information
ohodson committed May 21, 2023
1 parent 1d93841 commit e454d4e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"label": "Bazel build workerd (fastbuild)",
"type": "shell",
"command": "bazel",
"args": ["build", "--config", "fastbuild", "//src/workerd/server:workerd"],
"args": ["build", "-c", "fastbuild", "//src/workerd/server:workerd"],
"group": {
"kind": "build",
"isDefault": true
Expand Down Expand Up @@ -93,6 +93,42 @@
"clear": true
}
},
{
"label": "Bazel clean",
"type": "shell",
"command": "bazel",
"args": ["clean"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
},
{
"label": "Bazel clean --expunge",
"type": "shell",
"command": "bazel",
"args": ["clean", "--expunge"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
},
{
"label": "Bazel run all tests",
"type": "shell",
Expand Down
2 changes: 2 additions & 0 deletions docs/vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ The [.vscode/tasks.json](../.vscode/tasks.json) file provides a few useful tasks
* Bazel build workerd (fastbuild)
* Bazel build workerd (opt)
* Bazel build all (dbg)
* Bazel clean
* Bazel clean --expunge
* Bazel run all tests
* Generate compile_commands.json
* Generate rust-project.json
Expand Down

0 comments on commit e454d4e

Please sign in to comment.