Refresh, re-compilation of c++ code and Intellisense

I’ve ran into the same issue and found a few ways to fix this (one of them is similar to your solution). Approach #1 that I describe is probably the closest to anything official I’ve figured out.

Here’s my reply to a similar post: