Example of multiple tasks

nRF Connect for VS Code

tags
nRF Connect for VS Code

You can bind multiple tasks to a build configuration in the binding configuration file. For example:

{
  "nrf-connect.taskBindings": {
      "build": [
          { "taskName": "My custom build" },
          { "taskName": "Staging build", "buildConfigs": ["build"] },
          { "taskName": "Release build", "buildConfigs": ["build"] },
      ]
  }
}

In this instance, three tasks have been bound to the build build configuration. The My custom build task was bound implicitly since no builds were declared in the binding, and the remaining two were bound by explicitly naming the build build configuration. When multiple tasks are bound, the extension gives you a choice of which to execute when you run the action.