How to get 'project tasks' in new workspace


I’m using pio with Arduino projects on Linux with Visualcode as editor.

I want to work on some exiting code from Github as a new projetct. I download the code into a directory , the I open this directory with ‘open folder’. I can browse the files just fine, but I don’t have the Build/Upload etc. items to actually work on the files. How do I get those back ?


Like usual, after describing my problem I tried some more things. I found that if I copy the platformio.ini file from anothe project then my platformion stuff is back.