Just a quick question.
Did you observe the problem in the .ino tab?
If you have multiple tabs with .h and .cpp files you need to include arduino.h in them else the intellisense will not know about the datatypes. It will however compile fine.
Willem.