maybe it's because the code binary is exiting right after it starts the editor, and roamer deletes the file
try EDITOR="code -w".
It'll open a new instance, in the foreground
Well that sort of worked, however it seems to wait for the whole VS Code process to end which obviously is a pain if you have a bunch of stuff open, which is a shame.