-
Notifications
You must be signed in to change notification settings - Fork 182
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
Allow disabling syntax validation for blocks #1612
Comments
Thank you for the suggestion! We started looking into this as part of #1597, but this is a good, more general summary. |
Thank you! I couldn't find #1597 even though I looked for various combinations of keywords. It might be worth closing it in favour of this issue to keep things in one place 🤔 |
Thanks for the report, I have opened #1616 to describe the problem in a more general way and added some context. It is something we will likely have to address soon as it's obviously wrong/misleading. I also filed hashicorp/terraform-ls#1480 to track the suggested feature with in-line comments. I will close this issue for now but feel free to subscribe to either of the two. |
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. |
Extension Version
v2.28.2
Problem Statement
The extension can validate the syntax for blocks, but that does not take into account all possible configurations.
From what I can see, this is mainly a concern with provider blocks since many providers can be configured with environment variables.
As an example, take this
vault
provider block:However, we use Terraform Cloud and define the
VAULT_ADDR
environment variable with a Variable Set that is configured for our workspaces.There is currently no way to configure the extension to either connect to Terraform Cloud to also take these configurations into account or to disable syntax validation for these blocks.
Expected User Experience
I would like for the syntax validation to not flag correct provider configurations as incorrect.
Proposal
I would like the syntax validation to support either:
# terraform: ignore-next-block
commentReferences
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: