Azure / Azure/bicep

Provide an auto-fix for compiler error of "Location does not exist"

Open
#5,710 2 comments 0 reactions 0 assignees View on GitHub
devdiv enhancement story: snippets and scaffolding
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

When a user is creating a snippet, if they haven't created a parameter named location previously, I think it would be great to provide them an autofix to give them

"param location string" at the top of their file in just one click.

![image](https://user-images.githubusercontent.com/20650058/150845312-c54fc1fe-5234-4533-9a87-ea6656ac5a56.png)

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the "Location does not exist" compiler diagnostic is produced while creating a snippet, then identify the editor entry point for one-click fixes. Done means a missing location parameter can be inserted as "param location string" at the top of the file and the diagnostic is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.