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

Contribute tasks for "flutter build" and other common commands #2718

Closed
sidrao2006 opened this issue Aug 11, 2020 · 4 comments
Closed

Contribute tasks for "flutter build" and other common commands #2718

sidrao2006 opened this issue Aug 11, 2020 · 4 comments
Labels
in flutter Relates to running Flutter apps is enhancement
Milestone

Comments

@sidrao2006
Copy link

Use Case

As available in IntelliJ and Android Studio, the build option will be very useful.
Currently in VS Code, we have to run the command in terminal.

@DanTup
Copy link
Member

DanTup commented Aug 12, 2020

There are quite a few build types and each one has a number of arguments. I'm unsure if it's worth having to maintain those in some quick-pick versus just leaving this as something to run from the terminal. I do generally encourage avoiding the terminal and using built-in commands, but it usually comes at the expensive of only being able to do the most simple form with no arguments.

@DanTup DanTup added this to the Backlog milestone Aug 12, 2020
@DanTup DanTup added in flutter Relates to running Flutter apps is enhancement labels Aug 12, 2020
@sidrao2006
Copy link
Author

Hi @DanTup thanks for replying.
VS Code does provide an option to configure these settings. So options for building apk, appbundle, ipa can be provided with config.json file to pass parameters for customization

Using the terminal is sometimes really frustrating

@DanTup
Copy link
Member

DanTup commented Aug 12, 2020

VS Code does provide an option to configure these settings. So options for building apk, appbundle, ipa can be provided with config.json file to pass parameters for customization

That's true, but editing the settings might be more effort than just running it manually.

That said, I think a task provider may work well here. We can contribute default tasks (for example with no arguments) and if you want to customise them you can click the cog icon to copy them into your own tasks.json.

@DanTup DanTup changed the title Flutter feature : Add build apk/ appbundle/ iOS Contribute tasks for "flutter build" and other common commands Aug 12, 2020
@DanTup DanTup modified the milestones: Backlog, On Deck Aug 12, 2020
@sidrao2006
Copy link
Author

sidrao2006 commented Aug 12, 2020

VS Code does provide an option to configure these settings. So options for building apk, appbundle, ipa can be provided with config.json file to pass parameters for customization

That's true, but editing the settings might be more effort than just running it manually.

@DanTup, editing the settings may require some effort but not as much as the effort need to open the terminal and enter the command with all the arguments just for building the app.

That said, I think a task provider may work well here. We can contribute default tasks (for example with no arguments) and if you want to customise them you can click the cog icon to copy them into your own tasks.json.

That's great, I'll be looking forward to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in flutter Relates to running Flutter apps is enhancement
Projects
None yet
Development

No branches or pull requests

2 participants