intellij-hcl icon indicating copy to clipboard operation
intellij-hcl copied to clipboard

Add new provider autocompletion resource

Open nfx opened this issue 4 years ago • 5 comments

@VladRassokhin, would it be possible to add autocompletion for Databricks provider?

nfx avatar Jul 27 '20 12:07 nfx

It's enough to adjust terraform-metadata project to generate metadata for your provider. New provider definition needs to be added to providers.base.json.

VladRassokhin avatar Jul 29 '20 09:07 VladRassokhin

I actually tried this for a 3rd party provider https://github.com/aiven/terraform-provider-aiven

I added

  "aiven": {
    "repository": "https://github.com/aiven/terraform-provider-aiven",
  },
  "keycloak": {
    "repository": "https://github.com/mrparkers/terraform-provider-keycloak",
  }

but I am not sure if this is correct since I am erroring

Cloning https://github.com/aiven/terraform-provider-aiven
make: *** [schemas] Error 128

And there is no error log

phumberdroz avatar Aug 11 '20 21:08 phumberdroz

Would be good at somepoint to support terraform-ls to make autocompletion more dynamic

G-Rath avatar Aug 20 '20 05:08 G-Rath

@VladRassokhin Is there another way to add new custom schemas to be picked up by the plugin? Currently, as you have mentioned, new schemas can be added terraform-metadata. But this needs to be done for every machine. Asking 100s of engineers to clone this repo on their machines may not be the best idea. Also, we cannot add the internal schemas to this repo.

We customize IntelliJ IDEA for all our engineers and we do validate JSON files with certain schemas, and IntelliJ SDK has JsonSchemaFileProvider for us to add custom schemas. If terraform plugin also exposes some extension points like this, that would be great. Any plans to do that in future? Or some other approach? Thank you.

vicky17d avatar Jul 16 '21 20:07 vicky17d

Bump

vicky17d avatar Sep 21 '21 05:09 vicky17d