I can only compile my code once

There is a setting in OneDrive; something like 'files on demand' or so. You can search this forum or google it.

There is a bug report on gitHub and I think that it will be solved in the next version of the IDE.