When a hitting Run to run a program, all files that have been modified and are unsaved should be saved before the program is run. This is in case a multi file program is being run, then all the changes will be saved so that the run has the latest of each file.
This is consistent with VS Code and the previous version of XRPCode.