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

Suggestion: Refactor: extract a property into a parameter ("create parameter") #14535

Open
SimonWahlin opened this issue Jul 13, 2024 · 0 comments · May be fixed by #14701
Open

Suggestion: Refactor: extract a property into a parameter ("create parameter") #14535

SimonWahlin opened this issue Jul 13, 2024 · 0 comments · May be fixed by #14701
Assignees
Labels
devdiv Related to Bicep tooling efforts in DevDiv enhancement New feature or request story: refactoring
Milestone

Comments

@SimonWahlin
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
I often start to write a bicep template by creating a resource (manually or exported from existing resource) and then add parameters and potential logic from there.

Adding parameters is a tedious and time consuming task.

Describe the solution you'd like
It would be really nice to be able to create a parameter from any property in my template by for example right-clicking and choosing "create parameter" or by setting the cursor on a property and use a command for "create parameter".

I would expect the parameter to have the same name and type as the property (maybe even a resource derived type if that feature is enabled) as the property and have a default value of what is currently assigned to the property.

The property should then have the parameter reference as a value.

If the property has a description in the type definition I would also expect the parameter to have the same description.

@SimonWahlin SimonWahlin added the enhancement New feature or request label Jul 13, 2024
@alex-frankel alex-frankel added this to the Committed Backlog milestone Jul 17, 2024
@alex-frankel alex-frankel added the Needs: Upvote This issue requires more votes to be considered label Jul 17, 2024
@StephenWeatherford StephenWeatherford self-assigned this Jul 24, 2024
@StephenWeatherford StephenWeatherford linked a pull request Jul 29, 2024 that will close this issue
@StephenWeatherford StephenWeatherford added devdiv Related to Bicep tooling efforts in DevDiv and removed Needs: Upvote This issue requires more votes to be considered labels Jul 29, 2024
@StephenWeatherford StephenWeatherford modified the milestones: v0.31, v0.30 Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devdiv Related to Bicep tooling efforts in DevDiv enhancement New feature or request story: refactoring
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants