VladRassokhin / intellij-hcl

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

quickdoc should offer .Default if it knows it #250

Open mdaniel opened 5 years ago

mdaniel commented 5 years ago

Prerequisites

Installation details

Terraform Configuration Files

provider "random" {}
resource "random_pet" "rp" {
  length = "hello"
}

Expected Behavior

This is similar to #154

QuickDoc for a property that has "Default" would be great if it were displayed: image

I don't know if there needs to be a separate issue, but it appears the plugin does not display any "Removed" strings, either, and nor does it warn about them:

provider "template" {}
resource "template_file" "t" {
  filename = "" // <-- has "Removed": "Use the 'template' attribute instead."
}

Actual Behavior

Displays only the property name, along with its (unenforced) HCL type, without any mention of the Default