Taken from here:
the reason for this is that your cake-build workspace has a tasks.json file of version 0.1.0 in it. Task providers never worked with tasks version 0.1.0 (even before VS Code version 1.25). Simply remove the file or migrate it to task version 2.0.0 and your cake tasks will show up.