nRF Connect for VS Code does not respect CMakePresets.json condition

We are using CMakePresets.json extensively in our project and rely on the condition field to control which presets are visible depending on the host system.

However, it appears that the nRF Connect for VS Code extension does not respect the condition property. All presets are listed regardless of the condition defined.

Example:

{
"name": "windows-build",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
}

{
  "name": "linux-build",
  "condition": {
    "type": "equals",
    "lhs": "${hostSystemName}",
    "rhs": "Linux"
  }
}

Expected behavior:

  • On Windows → only windows-build preset should be visible

  • On Linux → only linux-build preset should be visible

Actual behavior:

  • Both presets are listed regardless of host OS.

Related