-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support count.index
references in blocks w/ count
#860
Labels
enhancement
New feature or request
textDocument/completion
textDocument/hover
textDocument/semanticTokens
Semantic syntax highlighting
Milestone
Comments
radeksimko
added
enhancement
New feature or request
textDocument/completion
textDocument/definition
textDocument/hover
textDocument/references
textDocument/semanticTokens
Semantic syntax highlighting
labels
Apr 7, 2022
radeksimko
changed the title
Support
Support Apr 7, 2022
count.index
references in relevant blockscount.index
references in blocks w/ count
7 tasks
Merged
radeksimko
added a commit
that referenced
this issue
Oct 18, 2022
* Update CHANGELOG Add changelog info for #860 * Update CHANGELOG.md Co-authored-by: Radek Simko <radek.simko@gmail.com> Co-authored-by: Radek Simko <radek.simko@gmail.com>
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
enhancement
New feature or request
textDocument/completion
textDocument/hover
textDocument/semanticTokens
Semantic syntax highlighting
Notes
#583 is not a dependency, but
count.index
is quite frequently used as string in various names/tags and so is important in the context of this issue.Background
Terraform supports
count.index
reference withinresource
,data
andmodule
block and anywhere wherecount
meta-argument is supported, for examplehttps://www.terraform.io/language/expressions/references#block-local-values
https://www.terraform.io/language/meta-arguments/count
We don't provide any kind of support for this type of reference and if we were to do any kind of thorough validation of them we'd probably flag them as invalid today.
Expected UX
Completion
Hover
Semantic Highlighting
Proposal
hashicorp/hcl-lang
BodyExtensions{Count bool}
intoschema.BodySchema
Count
indecoder.PathDecoder.CandidatesAtPos()
Count
indecoder.PathDecoder.HoverAtPos()
Count
indecoder.PathDecoder.SemanticTokensInFile()
hashicorp/terraform-schema
count
attribute withBodyExtensions{Count: true}
inresource
,data
andmodule
block bodieshashicorp/terraform-ls
terraform-schema
&hcl-lang
The text was updated successfully, but these errors were encountered: