Skip to content

Releases: hashicorp/terraform-ls

v0.28.0

07 Jun 21:02
0bae981

Choose a tag to compare

ENHANCEMENTS:

  • Link to documentation from module source for registry modules (#874)
  • Provide refresh mechanism for module.providers when providers change (#902)
  • Provide refresh mechanism for module.calls when module calls change (#909)
  • Add support for workspace/didChangeWatchedFiles notifications for *.tf & *.tfvars (#790)
  • Improve performance by reducing amount of notifications sent for any single module changes (#931)

BUG FIXES:

  • Ignore duplicate document versions in textDocument/didChange (#940)

INTERNAL:

  • build(deps): bump github.com/mitchellh/cli from 1.1.2 to 1.1.3 (#886)
  • Use terraform-registry-address for parsing module sources (#891)
  • Add utm parameters to docs links in module.* commands (#923)

v0.27.0

14 Apr 16:21
b198da0

Choose a tag to compare

NOTES / BREAKING CHANGES:

  • langserver/handlers/command: Remove rootmodules command (#846)
  • cmd: Remove completion CLI command (#852)

ENHANCEMENTS:

  • Provide (opt-in) custom semantic tokens & modifiers (#833)
  • Enable 'go to module source' for local modules (via #849)
  • Enable opening a single Terraform file (#843)

BUG FIXES:

  • Avoid hanging when workspace contains >50 folders (#839)
  • Make loading of parent directory after lower level directories work (#851)
  • Fix corrupted diffs in formatting responses (#876)
  • Fix module.calls command for Registry modules installed by Terraform v1.1+ (#872)

INTERNAL:

v0.26.0

17 Mar 17:47
95e06be

Choose a tag to compare

ENHANCEMENTS:

  • Introduce go-to-variable from tfvars files (#727)
  • Automatically refresh semantic tokens for more reliable highlighting (#630)
  • Enhance semantic highlighting of block labels (#802)
  • Enable completion, hover, go-to-definition/reference etc. for Terraform Registry modules (#808)
  • Report dependent semantic highlighting modifiers as defaultLibrary (instead of modification) (#817)
  • Semantically highlight type declarations in variable type (#827)

BUG FIXES:

  • Address race conditions typically surfaced as "out of range" errors, lack of completion/hover/etc. data or data associated with wrong position within the document (#782)
  • Fix broken validate on save (#799)
  • Fix encoding of unknown semantic token types (#815)
  • Fix missing references for some blocks in a separate config file (#829)

INTERNAL:

  • Simplify module source detection in favour of faster CI/compilation times (#783)
  • Store documents in a memdb-backed table (#771)
  • Refactor job scheduler to use memdb for jobs (#782)
  • build(deps): bump github.com/creachadair/jrpc2 from 0.35.2 to 0.37.0 (#774, #795, #809)

v0.26.0-beta1

01 Mar 17:11
10853c5

Choose a tag to compare

v0.26.0-beta1 Pre-release
Pre-release

ENHANCEMENTS:

  • Introduce go-to-variable from tfvars files (#727)
  • Automatically refresh semantic tokens for more reliable highlighting (#630)
  • Enhance semantic highlighting of block labels (#802)
  • Enable completion, hover, go-to-definition/reference etc. for Terraform Registry modules (#808)

BUG FIXES:

  • Address race conditions typically surfaced as "out of range" errors, lack of completion/hover/etc. data or data associated with wrong position within the document (#782)
  • Fix broken validate on save (#799)

INTERNAL:

  • Simplify module source detection in favour of faster CI/compilation times (#783)
  • Store documents in a memdb-backed table (#771)
  • Refactor job scheduler to use memdb for jobs (#782)
  • build(deps): bump github.com/creachadair/jrpc2 from 0.35.2 to 0.37.0 (#774, #795, #809)

v0.25.2

11 Jan 16:55
7188ba9

Choose a tag to compare

BUG FIXES:

  • fix: avoid sending empty diagnostics (#756)
  • fix: avoid code lens updates when disabled (#757)
  • fix: Catch OS agnostic interrupt signal (#755)
  • fix: Return correct target selection range for definition/declaration (#759)
  • telemetry: Only send requests if data has changed (#758)

INTERNAL:

  • Switch to hc-install from tfinstall (#737)

v0.25.1

06 Jan 15:34
1b06ad4

Choose a tag to compare

BUG FIXES:

  • Reduce parallelism for background operations to flatten CPU spikes triggered by workspaces with many modules on machines w/ >2 CPUs (which would previously had higher parallelism) (#752)

INTERNAL:

  • build(deps): bump github.com/creachadair/jrpc2 from 0.32.0 to 0.35.2 (#748)
  • build(deps): bump github.com/spf13/afero from 1.6.0 to 1.8.0 (#747, #754)
  • build(deps): bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3 (#732)
  • build(deps): bump github.com/hashicorp/hcl/v2 from 2.10.1 to 2.11.1 (#731)

v0.25.0

02 Dec 16:54
b8eb864

Choose a tag to compare

ENHANCEMENTS:

  • Introduce module.providers command (#712)
  • Diagnostics for all known modules/files are now published automatically (as opposed to just open files) (#714)
  • Introduce go-to-variable from module input name (#700)

NOTES:

  • Diagnostics for non-autoloaded *.tfvars are no longer published, see #715 for more details (#714)

INTERNAL:

  • build(deps): bump github.com/creachadair/jrpc2 from 0.30.1 to 0.32.0 (#713, #728)
  • Avoid duplicate state entries (by avoiding symlink evaluation) (#699)

v0.24.0

10 Nov 11:40
07929e3

Choose a tag to compare

BREAKING CHANGES:

  • source.formatAll.terraform-ls is renamed to source.formatAll.terraform to follow other similar existing actions in the wild (#680)

ENHANCEMENTS:

  • Implement opt-in telemetry (documented in docs/telemetry.md) (#681)
  • Provide workspace-wide symbols for variables in *.tfvars (#658)
  • Go-to-definition now highlights just the definition of a block/attribute instead of the whole attribute/block (#689)
  • Add configuration option allowing to exclude directories from being indexed upon initialization (#696)
  • Parse *.tfvars.json for workspace-wide symbols and diagnostics (#697)

BUG FIXES:

  • The server announces just a single formatting code action, other actions source, source.fixAll and source.formatAll are removed which helps avoid running the same action multiple times and better follows conventions (#680)
  • Requesting Only: [] code actions is now no-op (#680)
  • Fix indexing of references in dependent modules (#698)
  • Fix workspace folder removal/addition at runtime (#707)

INTERNAL:

  • build(deps): bump github.com/creachadair/jrpc2 from 0.28.0 to 0.30.0 (#683, #684, #686)

v0.23.0

14 Oct 16:27
132e82d

Choose a tag to compare

ENHANCEMENTS:

  • Introduce module.calls command (#632)
  • Introduce experimental completion of required fields. You can opt in via prefillRequiredFields option (#657)
  • Ignore .terragrunt-cache when indexing initialized modules (#666)
  • Parse *.tf.json for references and symbols (#672)

INTERNAL:

  • build(deps): bump github.com/creachadair/jrpc2 from 0.25.1 to 0.28.0 (#649, #650, #662, #668, #676, #677)
  • build(deps): bump github.com/hashicorp/terraform-exec from 0.14.0 to 0.15.0 (#664)

v0.22.0

16 Sep 17:01
d340007

Choose a tag to compare

ENHANCEMENT:

  • Support standalone (not autoloaded) *.tfvars files (#621)

BUG FIXES:

  • fix: Limit label completion items to 100 (same as limit for completion items in other contexts) (#628)
  • Recognize references in module block inputs (#623)

INTERNAL:

  • build(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2 (#641)
  • build(deps): bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.1 (#629)
  • build(deps): bump github.com/creachadair/jrpc2 from 0.20.0 to 0.25.0 (#631, #636, #638, #640, #642)