iarsystems / iar-vsc-build

Visual Studio Code extension for developing and building IAR projects
Mozilla Public License 2.0
38 stars 5 forks source link

Changing the project configuration does not correctly update preprocessor macros for Intellisense #63

Closed Mpic closed 11 months ago

Mpic commented 11 months ago

Describe the bug: When changing the project configuration (e.g. Debug or Release) in IAR build extension configuration, the preprocessor macros (e.g. NDEBUG) are not correctly sent to the C/C++ extension.

More specifically, C/C++ Log Diagnostics shows Custom configurations for opened files with erroneous Defines (e.g. "NDEBUG=1" when it should not be in Debug project configuration).

This causes confusing incorrect inactive regions.

Environment: