I encountered the same issue.
My mistake was that I didn't enable the extension : C/C++ which was required to execute the cppbuild task.
cppbuild
Hope this helps!