Don't know if this is a bug or not.
In V18, start recording macro, do file => new, enter filename scratch1.txt, don't check "add to project", click OK. Stop recording macro. last_recorded_macro now has a call to workspace_new_file. Do the same thing in V19 beta 3 and there's no call to workspace_new_file.