The Build Contexts View in the Devicetree Visual Editor shows a subset of the build configurations in the Applications View.
The extension populates the list by filtering build contexts that are using the same active devicetree file (whose name is listed next to the header, for example nrf54l15dk_nrf54l15_cpuapp.dts in the image above):
-
When you open a different devicetree file or select it in Context Files, the file becomes the active devicetree file, which in turn modifies the build context list to show the configurations using the new active file.
-
When you select a different build context, the Devicetree Visual Editor aligns with your selection: Context Files, Context Overview, and Nodes are automatically updated with information valid for the selected build context and the active devicetree file. The extension also updates the Problems tab in the Visual Studio Code's Panel Views with issue only related to the build context. (If no devicetree file is open, no problems are reported in the Problems panel.)
-
If the file is not in the active build context and the
nrfconnect.activeAppFollowActiveEditorsetting is set totrue(as per default), the active build context is automatically changed to the first context that uses this file (that the extension is able to find).
The active build context is highlighted in blue.
Tip
You can select the active build context using the Set Active Context command in the Command Palette or the extension status item in the Status Bar.