Closed paulotovo closed 1 month ago
Could you provide the output of the C/C++: Log Diagnostics function when you open this file?
Do you have your C_Cpp.dimInactiveRegion setting set? If so, what is the current value?
Is IntelliSense working correctly otherwise?
This issue has been closed because it needs more information and has not had recent activity.
Environment
Bug Summary and Steps to Reproduce
Bug Summary: In a .h file with code snippet surrounded by a constant definition, it is not displayed (highlight) correctly whether the constant is defined or not.
Steps to reproduce:
`#undef TEST_CONST
ifdef TEST_CONST
define XXXXXXXX 10
endif
define TEST_CONST
ifdef TEST_CONST
define XXXXXXXX 10
endif`
Expected behavior:
The isolated code by the constant definition should appear highlighted if the constant is defined, otherwise it should appear disabled.
Configuration and Logs
Other Extensions
No response
Additional context
No response