Have you read through this topic? PIO, VSC can't build, no tasks found - #36 by xsrf
Sounds like the same type of problem.