Skip to content

Commit

Permalink
🪄 Automatically format Terraform (#47)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Woffenden <jacob.woffenden@digital.justice.gov.uk>
  • Loading branch information
Jacob Woffenden authored Mar 25, 2024
1 parent 084b576 commit ddebac3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
6 changes: 6 additions & 0 deletions features/src/terraform/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.0.4] - 2024-03-25

### Added

- Included settings to automatically format `terraform` and `terraform-vars` on save

## [0.0.3] - 2024-02-01

### Added
Expand Down
19 changes: 17 additions & 2 deletions features/src/terraform/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "terraform",
"version": "0.0.3",
"version": "0.0.4",
"name": "Terraform",
"description": "Installs the Terraform CLI",
"options": {
Expand All @@ -12,7 +12,22 @@
},
"customizations": {
"vscode": {
"extensions": ["HashiCorp.terraform"]
"extensions": ["HashiCorp.terraform"],
"files.associations": {
"*.hcl": "terraform"
},
"settings": {
"[terraform]": {
"editor.defaultFormatter": "hashicorp.terraform",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file"
},
"[terraform-vars]": {
"editor.defaultFormatter": "hashicorp.terraform",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file"
}
}
}
}
}

0 comments on commit ddebac3

Please sign in to comment.