Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run command? Not "build & run" #46

Open
schwjustin opened this issue Sep 26, 2024 · 2 comments
Open

Run command? Not "build & run" #46

schwjustin opened this issue Sep 26, 2024 · 2 comments

Comments

@schwjustin
Copy link

schwjustin commented Sep 26, 2024

Is it possible to add just a run command that will also override the current run like you can do in xcode? If I could map this to cmd+R I wouldn't need to keep switching back and forth from vs code to xcode, it's just much faster to run in xcode then to wait for the build & run command from sweetpad currently.

Also, when I do use the build & run sweetpad command with my simulator already the running the app, it asks me to terminate or restart the process in the bottom left corner of vs code which is also not convenient (in xcode the first time you try to start a run with an active run it asks you if you want to override it but there's a checkmark to never ask again - I don't think asking is even necessary tbh).

@hyzyla
Copy link
Collaborator

hyzyla commented Oct 6, 2024

@schwjustin I can implement only the "run" command without building, but to run something, you need to build it separately. I think it will not work faster than executing the "Build & Run (Launch)" command because it will work the same way, just only one part of this command

I suppose, Xcode works faster here with "Run" acrtion because they have the rebuild process running constantly to show errors in Xcode, and when you press the "Run" button in Xcode, it already has a warm build cache. My VS Code extension is completely built on top of the xcodebuild command, which doesn't have functionality like incremental rebuilding. One way to have incremental building in the extension is to reimplement the Xcode build system on my own, but that is too big of a task for me right now. Another option is to explore xcode build service proxies, that allow to hook into build process, but I'm not sure it's flexible enough to add support for incremental build

@schwjustin
Copy link
Author

Interesting that makes sense. Thanks for looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants