VladRassokhin / intellij-hcl

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

Find usages doesn't work on aliased providers #355

Open haidaraM opened 2 years ago

haidaraM commented 2 years ago

Installation details

Terraform Configuration Files

provider "aws" {
  region = var.region
}

provider "aws" {
  alias  = "shabiz"
  region = var.region
}

resource "aws_sns_topic" "test" {
  provider = aws.shabiz
  name     = "test"
}

Expected Behavior

Running Find Usages on the AWS provider shabiz should list all of the resources/data sources and modules that use this provider.

Actual Behavior

No usages found.

Steps to Reproduce

  1. Copy and paste the configuration above
  2. Run Find Usages on the aliased provider shabiz