VS Code not finding include files in C++

VS Code does not seem to search the folders listed in “includePath” inside c_cpp_properties.json for a programming project. Example, RobotBuilder generates code with
#include <frc/Commands/Scheduler.h>
but building fails because this files (and many others) cannot be found. We found the specific folder containing frc/Commands/Scheduler.h and made sure that folder is part of includePath, but to no avail.
Any suggestions?

Are you seeing problems with intellisense, or with building?

I don’t know whether IntelliSense is involved, but I know we have had trouble building. Two problems are reported in the example I attempted just now. (Related problem: I am unable to find the c_cpp_properties.json file containing includePath for this project, and the lightbuld above the include-file error squiggle does not show IntelliSense or includePath as an option.)

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
cannot open source file “optional” (dependency of “Robot.h”)

Update: Trying again later worked on that sample code. No idea why. Trying to build sample code from Rev Robotics for color sensor fails because it can’t find HAL.h . Since we can find other WPILib stuff, don’t know why we can’t find HAL.h