Mendix doesn’t seem to like this, and will attempt to overwrite the file if I had it open in Mendix at the same time. It doesn’t recognize the changes made to the file and will instead try to keep it in the state that it was if I had it open in Mendix while working in VSCode.
If you reopen the Js Action, it works just fine. However, it would be nice if it could be synced when opening the Code tab, or via a simple “refresh” button within the Code tab. Even better if it could sync automatically when it detects changes to the file.