Command line args aren't passed to Vice 3.5 x64sc on Mac running BigSur
I've just setup KickAssember and the VSCode extension on my MacBook running BigSur, and whilst the compiler compiles the code fine, it won't inject the compiled prg into Vice 3.5. The emulator starts but just starts at the C64 boot screen.
Did a little digging and the the extension is running the following command which does spawn a new shell window BUT it doesn't seem that the commands are being passed correctly (from CommandRun.js):
let emu = child_process_1.spawn("open", [emulatorRuntime, "--args", "-autostartprgmode", "1", "-autostart", program, ...emulatorOptions], {
Which results in:
["\"/Applications/Vice/bin/x64sc\"","--args","-autostartprgmode","1","-autostart","/Users/andy/dev/commodore64/MyApps/bin/test3.prg",["-moncommands","/Users/andy/dev/commodore64/MyApps/bin/test3.vs"]]
This translates to the command line:
open /Applications/Vice/x64sc.app --args -autostartprgmode 1 -autostart /Users/andy/dev/commodore64/MyApps/bin/test3.prg -moncommands /Users/andy/dev/commodore64/MyApps/bin/test3.vs
Running the above from the terminal results in the same thing happening (the emulator opens but just stays at the boot screen).
A workaround is to change the extension to not call the open command (same as the linux version) but just the emulator directly but this now doesn't show in a new terminal window. e.g.
let emu = child_process_1.spawn(emulatorRuntime, ["-autostartprgmode", "1", "-autostart", program, ...emulatorOptions], {