Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement for_each and each.* extensions (#145)
This provides completion hints inside blocks for `for_each` and `each.*` references within `resource`, `data` and `module` blocks anywhere the `for_each` meta-argument is supported. It detects if `for_each` is used already and does not suggest duplicates and detects when it is necessary to provide `each.*` completions. This does not complete the values for `each.key` and `each.value`, e.g. `each.value.something`. This also provides hover support for `for_each` and `each.*` references using the documentation as source. This also provides semantic token support for `for_each` and `each.*` references. Closes hashicorp/terraform-ls#861
- Loading branch information