VladRassokhin / intellij-hcl

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

Provide extension points to add custom providers and resources #358

Open vicky17d opened 2 years ago

vicky17d commented 2 years ago

@VladRassokhin

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. Does terraform plugin expose some extension points like this? If not, any plans to do that in future? Or some other approach that we can use?

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.

Thank you.

P.S. Asked in #307 but creating a separate issue as asking for extension points specifically.

P.P.S. I would be happy to contribute but the source code is owned by JetBrains now.

VladRassokhin commented 2 years ago

For now, there's no such API and so far no plans to do that.

Asking 100s of engineers to clone this repo on their machines may not be the best idea.

Anyway you've to somehow install plugin extension to 100s of engineers computers.

Also, we cannot add the internal schemas to this repo.

You may use other repo, e.g. private fork, just place it in proper directory.

P.P.S. I've seen almost zero contributions, so that was my intent to hide source code.

vicky17d commented 2 years ago

Anyway you've to somehow install plugin extension to 100s of engineers computers.

We package the required plugins with our custom IntelliJ