software-mansion / radon-ide

VSCode extension that turns your editor into a fully fledged IDE for React Native and Expo.
https://ide.swmansion.com
Other
985 stars 33 forks source link

Remove previous app button #659

Closed filip131311 closed 2 weeks ago

filip131311 commented 3 weeks ago

This PR removes the "previous app button" from top left corner of the ios simulator. Before this change If the user switched workspaces without shouting down the ios simulator, the button pointing to the previous app would appear in top left corner of the application. Clicking the button would break the IDE functionality as there is no way of navigating through the simulator and the only way to recover would be to restart app process (which would still leave the button in the corner).

The solution it to terminate any open applications before launching a new one.

Screenshot 2024-10-24 at 20 34 01

How Has This Been Tested:

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
radon-ide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 8:42am
filip131311 commented 3 weeks ago

This Portion of the regex ApplicationType = User; makes sure we don't try to close any system processes/applications and It was tricky to find a way to force simulator to home screen, there might be a way on sim-server side, but I couldn't find a command through xcrun.