Add hcl extension support
See original GitHub issueIs it possible to add support for .hcl file extension with this plugin?
Since terraform code is actually hcl + tfvars files can also be hcl it could make sense, right?
I checked the vscode plugin registry and it seems that there is no entry for this kind of files and maybe this one could handle it as it holds all the needed features
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Extending HCL Commerce with xC extension points
After you develop xC extension code, you must register your extension code within the HCL Commerce database and assign extension code to extension...
Read more >HashiCorp HCL - Visual Studio Marketplace
The HashiCorp HCL Extension is a grammar only extension targeted to provide HCL syntax highlighting for files not already accounted for by a ......
Read more >Announcing the HCL Extension for Visual Studio Code 0.1
Today we announce that HashiCorp has transitioned the community HCL Extension to an officially supported project.
Read more >HCL File Extension - What is .hcl and how to open?
Be careful not to rename the extension on .hcl files, or any other files. This will not change the file type. Only special...
Read more >Introduction to HCL and HCL tooling - Octopus Deploy
An HCL extension to offer proper language colorization. · The Terraform extension that also adds HCL support, despite being named for one of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi folks, Improving editor experience (via highlighting and other features) for “plain” (unknown) HCL or Packer/Nomad/… HCL flavour is something we keep under review. We do not have a solution for this yet though.
The key thing to understand here is that these languages (although based on HCL) differ.
hcl, but an “HCL” plugin would. This is not only for clean separation of concerns, but also to avoid problems where VS Code doesn’t seem to handle conflicts well between two plugins claiming the same file extension.Hi folks, https://github.com/hashicorp/vscode-terraform/issues/638 and https://github.com/hashicorp/vscode-terraform/issues/639 outline our plans for handling other non-Terraform HCL files.
TL;DR we plan to have a dedicated extension which would most likely claim
*.hclonly and that extension would provide all HCL-generic functionality, such as highlighting that is relevant for any HCL file (without knowing whether it’s Terraform, Packer, Nomad, Waypoint or anything else).In the interest of keeping conversations in one place I’m going to close this issue in favour of the two mentioned ones.
Thanks!