VladRassokhin / intellij-hcl

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

Open Documentation of a Resource points to a malformed URL #396

Open janosmiko opened 2 years ago

janosmiko commented 2 years ago

Prerequisites

Installation details

Non-Bundled Plugins: org.intellij.plugins.hcl (221.5921.12)

 - [x] intellij-hcl plugin version (`Settings->Plugins`)

221.5921.12

 - [x] Terraform version (`terraform -v`)

v1.1.9 (tested with latest version as well and it's not working)


### Terraform Configuration Files
```hcl
resource "aws_cloudwatch_metric_alarm" "test" {
...
}

Expected Behavior

Open the Browser pointing to terraform registry page of the resource. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_metric_alarm

Actual Behavior

Opens a Browser pointing to terraform registry page of the resource but in an old format (notice the .html in the end). https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_metric_alarm.html

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Place cursor to the resource name
  2. Press shift+f1