Using the nRF Connect extension(s) for VS Code. Our project has multiple build configurations for multiple different hardware designs, including multiple variants of nRF52 microcontrollers. I am able to build each configuration successfully, but no matter what I've tried, VS Code will only recognize the very first configuration (alphabetically) as the one to load things like board definitions, defines, compile guards, etc. from. Makes editing/reading the code just about impossible because sections of code that should be disabled due to compile guards are enabled, and sections that should be enabled are disabled because the wrong defines/guards are being used.
How can I force VS Code to use a specific build configuration when showing the source code in the editor?
- I have already closed and reopened VS Code many times
- I have already rebooted my computer
- I have already closed and reopened all editor tabs
- I have already selected the build configuration I want in the "APPLICATIONS" tab of the nRF Connect sidebar
- I have already tried folding/unfolding the build configuration I want in the "APPLICATIONS" tab of the nRF Connect sidebar
- It is not practical for me to delete the other build configurations
- It takes several minutes to create each of them
- I switch back and forth between configurations frequently during development