Skip to content

HCL language support for Terraform files #542

Description

@pbtrudel

Summary

When using Command Code in a folder with Terraform and Terragrunt files, .tf and .hcl files, I see this error poping up often in the harness:
"Could not find the language 'hcl', did you forget to load/include a language module"

Expected Behavior

Should not see this error, and syntax highlighting should work for hcl files.

Actual Behavior

no syntax highlighting for hcl files and getting "Could not find the language 'hcl', did you forget to load/include a language module" errors.

Steps to reproduce the issue

  1. open command code cli in a folder with terraform and terragrunt files, so including .hcl files.
  2. start modifying or adding features to the hcl files.
  3. press ctrl+t to view tastes and ctrl+t to go back and you should see this error at the top, but disappears really fast.

Command Code Version

0.40.17

Operating System

Linux

Terminal/IDE

Unknown

Shell

sh

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions