Azure / Azure/bicep

Improve completions for decorators

Open
#6,174 0 comments 2 reactions 1 assignee Claimed by @myaschmitz View on GitHub
enhancement good first issue
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Is your feature request related to a problem? Please describe.**

Completions when adding decorators could be improved. If I add a `@description` decorator today it completes to `@description()`, but since it only accepts strings it should complete to `@description('')`. Same goes for `@metadata` and `@allowed`, they are of type array and object and could be completed to `@metadata({})` and `@allowed([])`.

**Describe the solution you'd like**

I would like for it to to work like this.

```bicep
// Adding decorators today
@metadata()
@allowed()
@description()
param myParam string

// What I would like to get
@metadata({})
@allowed([])
@description('')
param myParam string
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.