Releases: hashicorp/vscode-terraform
1.0.8
1.0.6
New Features
- Autocomplete now autocomplete builtin interpolation functions
- Autocomplete in interpolation should be more robust
.tfvarsFiles are now correctly indexed so that Go To definition, Rename more now work as expected (Closes #80)- Autocomplete of top-level sections (e.g.
resource,variablefor example) now uses snippets to speed up authoring
Experimental features
- Invoking the command
terraform.preview-graph(Terraform: Preview Graph) will generate and show a clickable resource dependency graph
Fixes
- Correctly syntax highlight the
locals {}keyword
1.0.5
1.0.3
1.0.2
Quick bugfix for 1.0.1
Fixes
- Fix racecondition during startup of larger projects
1.0.0
1.0.0
New Features
- Indexing support is no longer experimental
- Indexing support no longer requires a separate tool (HCL parsing is now built directly into the plugin)
- Rename refactoring now supports all types
- Hovering a variable shows the default value
- A code lens shows how often a resource (or variable, or data) is referenced
- Terraform now works with Visual Studio LiveShare (thanks to @lostintangent)
0.0.23 (also 0.0.22)
0.0.23
Fixes
- Typo in README.md which broke the auto-complete preview @chroju
0.0.22
Fixes
- Do not require
terraform.index.enabledto be true in order for auto-completion to work - Fix a small typo which makes
Format Documentcommand fail - Correctly bundle auto-completion data files
0.0.21 Auto-complete and bring back format on save
What's New
- Auto completion support @ranga543
- Format on save is back (closes #45, #47)
- Tools can now be installed in directories which have spaces @xeres
Format on save
The last version introduced usage of the correct extension APIs for registering formatting
providers. VSCode then automatically invokes the formatting provider on save if editor.formatOnSave has been specified. VSCode however does never invoke the formatting
provider if the save operation came from an auto-save event.
0.0.21 reintroduces the manual code which handled format on autosave instead of relying on
VSCode to perform those operations. The following configuration options have changes as result
of that:
terraform.format.enable: needs to betrueterraform.format.formatOnSave: needs to betrueterraform.format.ignoreExtensionsOnSave: can be used to exclude.tfvarsfor example from autosave formatting
The global setting: editor.formatOnSave should be false for Terraform files and the
extension contributes that default configuration. Please verify that you do not have
conflicting configuration, by removing the following setting if you have it:
"[terraform]": {
"editor.formatOnSave": true
}
The configuration editor.formatOnSave will have the correct setting contributed by Terraform.
0.0.20
- The formatter now uses the correct Formatting API so that the builtin command for formatting works as expected (closes #42)
- The formatter no longer has a hardcoded list of approved extensions, instead if the document type is 'terraform' then the formatter can be used to that file (closes #41)
- The introduced formatter changes means that the plugin specific configuration for formatting (e.g.
terraform.formatOnSave) have been deprecated and are no longer used.