Skip to content

Releases: hashicorp/vscode-terraform

1.3.0

01 Aug 15:14
Compare
Choose a tag to compare

New Features

  • Correctly fold HEREDOCs (closes #48)
  • Resources are not correctly groups so that goto definition works as expected (closes #107)
  • Looks for all terraform binaries in PATH and picks the newest
  • Show a warning if erd0s.terraform-autocomplete is installed as it breaks document links (refer #102)
  • Resources are now grouped by folder internally which fixes several reported issues #103
  • Support outline view
  • Simple custom view which shows an overview of all modules
    • This is the very first and very simplest version so you cannot really interact with the view.

Breaking Changes

  • Format On Auto-Save is now gone (closes #112 and others, see below for an in-depth explanation)

Fixes

  • Catches exceptions in all commands and providers and reports them automatically (if enabled, closes #106)

Format On Auto-Save Removal

In one of the very first versions of the Terraform plugin, that is before VSCode had format-on-save
or the auto-save features, the Terraform plugin had its own implementation of format-on-save which
just listened to save events from the editor and then overwrite the files.

Later auto-save was introduced and because the Terraform plugin was listening to save events and
manually performing format on save, that meant that without doing anything we suddenly had
format-on-auto-save.

A while back VSCode introduced a proper API for performing formatting and formatting on save; these
APIs have been in use by the extension since 0.0.20; when these API were introduced they deliberatively
omitted format on auto save, because it breaks development workflows in more complicated languages.

Now the Terraform plugin has started to become relatively complicated in itself with auto completion
support and refactoring support as well as more and more coding features added all the time. As the
usage of the extension has been growing and we have started to see more and more bugs because we
perform format-on-auto-save.

So now I had to remove the feature.

Sorry to all of you who liked the feature. I hope you will keep using my extension regardless of the lack of this feature.

With the removal of this feature the following configuration changes have been made.

  1. the Terraform extension no longer supply a default config for [terraform]editor.formatOnSave: false, instead
    the default setting of editor.formatOnSave applies unless you have overridden it yourself.
  2. the setting terraform.format.enable is now gone as it doesn't make sense anymore
  3. the setting terraform.formatOnSave is now gone as it has no effect
    • use editor.formatOnSave or [terraform]editor.formatOnSave instead

Thanks for using my extension.

1.2.3

04 Jul 23:23
Compare
Choose a tag to compare

Fixes

  • Unbreak Show Workspace Symbols

1.2.2 (1.2.1)

03 Jul 11:31
Compare
Choose a tag to compare

Fixes

  • Forgot to bundle metrics key
  • Collect references in math expressions (Closes #95)
  • Do not eat property accesses during rename refactoring (Closes #104)

Unimportant news

  • Split tests into unit tests and integration tests
  • Added even more build instructions

1.2.0

22 Jun 10:51
Compare
Choose a tag to compare

Fixes

  • Browsing workspace symbols works again
  • Remove duplicates when suggesting completions (Closes #98)
  • Show more information when browsing symbols (Closes #92)
  • Add matching syntax for closing brackets Thanks to @pecigonzalo
  • Do no show code-lenses for provider sections (references were incorrect anyway)
  • Fix typos in README.md Thanks to @conradolega

Unimportant news

  • Improved build instructions to make contributions easier
  • Upgraded to gulp 4.0.0
  • Use gulp for all build steps and workflows

1.1.1 (1.1.0)

20 May 22:09
Compare
Choose a tag to compare

Fixes

  • Correctly track user session
  • Indexing is now done per workspace folder rather than globally (closes #83)
  • HIL parse errors are now correctly handled and surfaced in the Problems view

Features

  • Very simple telemetry is now being reported if enabled (currently only an event is recorded when the plugin activates)

Telemetry

Currently only a simple activated event is being recorded. All events include the version of VSCode and some other automatically provided properties by VSCode (refer: Common Properties).

The plugin respects the global telemetry opt-out (telemetry.enableTelemetry) setting but you can also disable telemetry collection for just this plugin by setting terraform.telemetry.enabled to false.

You can read more about telemetry reporting in VSCode in the FAQ.

1.0.8

15 May 11:50
Compare
Choose a tag to compare

Fixes

  • Correctly set current working directory when calling tflint (Closes #82)

1.0.6

13 May 06:56
Compare
Choose a tag to compare

New Features

  • Autocomplete now autocomplete builtin interpolation functions
  • Autocomplete in interpolation should be more robust
  • .tfvars Files 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, variable for 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

03 May 10:33
Compare
Choose a tag to compare

New Features

  • The Hover now shows values of more references (previously only variable default were shown)

Fixes

  • Correctly parse references to list and map variables as well as references in nested expressions (Closes #75)

1.0.3

30 Apr 15:02
Compare
Choose a tag to compare

New Features

  • Support region for code-folding (#region, #endregion) (closes #63)
  • Add document links to the official terraform documentation (closes #68)

1.0.2

30 Apr 13:04
Compare
Choose a tag to compare

Small improvements:

New Features

  • CodeLens contribution can be disabled via configuration (closes #73)
  • Make it possible to exclude paths from indexing (by default excludes .terraform, closes #72)