Whitebrim / VSCode-PlaydateTemplate

This template will help you with autocompletion and running your code in simulator. Windows & Linux.
205 stars 25 forks source link

Build and Run on Windows - Simulator doesn't remember open debugging windows (fix) #18

Closed Myles512 closed 7 months ago

Myles512 commented 7 months ago

First I want to say, thank you for setting this up. I've used it for every playdate project I've done and it makes getting started very easy.

One issue I've always had is this: On Windows if you manually close the simulator, it'll remember if the console is open and reopen it. If you build while the simulator is already open, the console will not open by default, requiring you to manually open it.

I did figure out a fix, though. I changed this line in Build and Run (Simulator).ps1

$sim.CloseMainWindow()

to

Stop-Process -InputObject $sim

and it seems to fix the issue. The Simulator will remember if the console was open and open it by default.

I would submit a pr, but I already have a fork of this and don't know how to pr just that one change. >_>

Myles512 commented 7 months ago

I think I figured out how to pr this.