For some not obvious reasons, when I modify code inside the remote container and then switch back to my local directory, the changes are gone.
This can be very frustrating when you worked on a piece of code a long hours and all your work is gone. Unfortunately, when working inside the remote container, we create a copy of the local code on the remote container. Hence, changes on the copy will not be transferred to the local code. A solution to this is to commit and push your code on github. When you head back to the local directory, just pull the code from github. We are currently investigating a way to make it more convenient for developers.