VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

Nested maps are not recognized properly, variable completion does not work #388

Open niedrist opened 2 years ago

niedrist commented 2 years ago

Prerequisites

Installation details


### Terraform Configuration Files
```tf

# Type specification

variable "test_var" {
  type = map(
    object({
      key1 = string
      key2 = string
    })
  )
}
# Variable access
var.test_var.some_key.key1

Exception

Expected Behavior

Appropriate object keys should be suggested and not be marked red

Actual Behavior

See exception

Steps to Reproduce

  1. Place cursor after var.test_var.
  2. Hit your autocompletion keys (Ctrl+Space)