You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #16970 - Wilfred:fix_tasks, r=Veykril
Fix tasks in tasks.json
#16839 refactored the representation of tasks inside the VS Code extension. However, this data type is exposed to users, who can define their own tasks in the same format in `tasks.json` or `.code-workspace`.
Revert the data type to have a `command` field rather than a `program` field, and document the different fields. This code is also a little complex, so split out a `cargoToExecution` to handle the Task to Execution conversion logic.
After this change, any tasks.json with a `command` field works again. For example, the following tasks.json works as expected:
```
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"problemMatcher": [
"$rustc"
],
"group": "build",
"label": "my example cargo build task"
}
]
}
```
Fixes#16943#16949
// scope can sometimes be undefined. in these situations we default to the workspace taskscope as
101
+
// recommended by the official docs: https://code.visualstudio.com/api/extension-guides/task-provider#task-provider)
// scope can sometimes be undefined. in these situations we default to the workspace taskscope as
123
-
// recommended by the official docs: https://code.visualstudio.com/api/extension-guides/task-provider#task-provider)
0 commit comments