Azure / Azure/bicep

IntelliSense completion of "resourceGroup()" should place user after closing parentheses

Open
#5,713 14 comments 1 reaction 0 assignees View on GitHub
devdiv enhancement good first issue Needs: Upvote
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 2h
Merged PRs (30d)
79

Description

Each time a user types in "reso", they are given the suggestion of "resourceGroup". The most common practice that we also recommend is to type in resourceGroup().location as the default parameter for location. Unfortunately, we place the user in the middle of the resourceGroup(__) which can be annoying. I understand resourceGroup() does take an input, but this isn't the most common case.

![image](https://user-images.githubusercontent.com/20650058/150848746-b627a573-8ab8-4f6b-9841-7691242efc05.png)

Suggestion
![image](https://user-images.githubusercontent.com/20650058/150849268-c78d19e6-0888-4c4d-99e2-63cee8530713.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing IntelliSense completion after typing "reso" and locate the completion entry for resourceGroup. Verify the current cursor placement and update the behavior so the common resourceGroup().location usage places the user after the closing parentheses, while preserving support for an input argument.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.