-
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 self.*
references in provisioner
, connection
and lifecycle
blocks
#859
Closed
6 tasks
Tracked by
#495
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/declaration
textDocument/semanticTokens
Semantic syntax highlighting
labels
Apr 7, 2022
7 tasks
radeksimko
changed the title
Support
Support Jun 1, 2022
self.*
references in provisioner
and connection
blocksself.*
references in provisioner
, connection
and lifecycle
blocks
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
Background
Terraform supports
self.
references withinprovisioner
andconnection
resource blocks, such ashttps://www.terraform.io/language/expressions/references#block-local-values
https://www.terraform.io/language/resources/provisioners/syntax
We don't provide any kind of support for these references and if we were to do any kind of thorough validation of them we'd probably flag them as invalid today.
UX Implications
Completion
Hover
Semantic Highlighting
Proposal
hashicorp/hcl-lang
BodyExtensions{SelfRefs bool}
intoschema.BodySchema
SelfRefs
indecoder.PathDecoder.CandidatesAtPos()
SelfRefs
indecoder.PathDecoder.HoverAtPos()
SelfRefs
indecoder.PathDecoder.SemanticTokensInFile()
hashicorp/terraform-schema
BodyExtensions{SelfRefs: true}
toprovisioner
andconnection
block bodieshashicorp/terraform-ls
terraform-schema
&hcl-lang
The text was updated successfully, but these errors were encountered: