Azure / Azure/bicep

Intellisense on typed variables

Open
#16,930 0 comments 3 reactions 0 assignees View on GitHub
Needs: Upvote
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 2h
Merged PRs (30d)
79

Description

**Bicep version**
Bicep CLI version 0.34.44 (1f661a23c4)

**Describe the bug**
Typed variables don't have intellisense while untyped variables do.

**To Reproduce**
test1 gives me no suggestions on which keys are available while test2 does. Shouldn't both suggest the available keys in this hashtable as both are static / compile-time variables?

```bicep
var test1 {*: string} = {
name: 'name'
id: 'id'
}

var test2 ={
name: 'name'
id: 'id'
}

var temp1 = test1
var temp2 = test2
```

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the supplied Bicep snippet in the IntelliSense experience and compare suggestions for test1 and test2; done means typed and untyped variables both suggest the available hashtable keys.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
tooling
Issue type
Bug
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.