vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

#ifdef XXX #else #endif gray code Bug

Open iamlk opened this issue 7 years ago • 2 comments

Type: Debugger

Describe the bug

  • OS and Version: MacOS 10.14.6

  • VS Code Version:1.38.1

  • C/C++ Extension Version:0.25.1

  • Other extensions you installed (and if the issue persists after disabling them):

  • A clear and concise description of what the bug is.

To Reproduce Please include a code sample and launch.json configuration. Steps to reproduce the behavior:

  1. #define something in header files
  2. writing #ifdef xxx #else xxx #endif
  3. //#define
  4. See error image Additional context If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json Add any other context about the problem here including log or error messages in your Debug Console or Output windows.

iamlk avatar Sep 27 '19 06:09 iamlk

I'm not able to repro the bug. Is the bug that half the defines are grayed out strangely? Is there some special requirement?

sean-mcmanus avatar Sep 27 '19 19:09 sean-mcmanus

Restart ccptools and VScode,it's get back to normal. Thanks~

iamlk avatar Sep 28 '19 01:09 iamlk