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

Ability to build a bicep file from VSCode file context menu #2868

Closed
slapointe opened this issue May 26, 2021 · 9 comments · Fixed by #3708
Closed

Ability to build a bicep file from VSCode file context menu #2868

slapointe opened this issue May 26, 2021 · 9 comments · Fixed by #3708
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@slapointe
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I have no quick way to build a bicep file into an ARM template without invoking a terminal command like az bicep build or bicep build myself.

Describe the solution you'd like
I'd like the ability to right click a bicep file in VSCode treeview and choose Build to produce an ARM template without going into a terminal window.

@slapointe slapointe added the enhancement New feature or request label May 26, 2021
@ghost ghost added the Needs: Triage 🔍 label May 26, 2021
@alex-frankel alex-frankel added good first issue Good for newcomers and removed Needs: Triage 🔍 labels May 26, 2021
@alex-frankel
Copy link
Collaborator

My guess is someone with VS code extension authoring should be able to implement this pretty quickly - that's why I am tagging it as a good first issue.

This also opens pandora's box for deploying bicep from a context menu :)

@alex-frankel
Copy link
Collaborator

cc @MarcusFelling who has expressed interest in this as well. There may already be an issue.

@MarcusFelling
Copy link
Collaborator

+1 related to #1862 #1182

@anthony-c-martin
Copy link
Member

I started on the implementation for build under #191 - it's old, but the code diff might be useful to whoever is looking to implement this.

@StephenWeatherford
Copy link
Contributor

Building/decompiling would be very easy to implement. Deploy is more complicated, depending on what we do (e.g. integration with the Azure subscription extension and Azure pane so you can sign in?, or just a “run a command in the terminal” experience, which would be a lot simpler).

It would also be pretty easy to have a bicep->JSON preview window that could be opened to the right side (like the bicep playground, but local). Would that be interesting?

@slapointe
Copy link
Contributor Author

It would also be pretty easy to have a bicep->JSON preview window that could be opened to the right side (like the bicep playground, but local). Would that be interesting?

Would that generate the JSON preview in a secondary window or would that build/show the build result in a preview window?

I prefer the later.

@StephenWeatherford
Copy link
Contributor

Not sure what you mean. I was thinking it would show the result of building the bicep file (the built JSON) as you type.

@slapointe
Copy link
Contributor Author

slapointe commented May 26, 2021

Not sure what you mean. I was thinking it would show the result of building the bicep file (the built JSON) as you type.

I was thinking having to save the file, invoke the command on the saved file and see the generated result.

Not necessarily as you type.

If your scenario supported both, the "as you type" is interesting and complementary, but my first need is more build an existing file.

@StephenWeatherford
Copy link
Contributor

Gotcha.

@bhsubra bhsubra self-assigned this Jul 14, 2021
@bhsubra bhsubra added this to the v0.5 milestone Jul 14, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants