-
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
local variables autocomplete not working within inline block #600
Comments
Reproduced, thank you for the report. I have transferred this over to the language server repository as LS is responsible for parsing the configuration. From a brief investigation I can tell that The extension & language server should understand any valid configuration so this is certainly a bug. I am talking to the SDK team internally to first understand how exactly should the compatibility mode work and which one is the preferred representation of the config. In the meantime though you may be able to work around this by adding |
It is my understanding that attributes (i.e. #607 will make it possible for the language server to recognize these fields as blocks too, but it will prefer completion of attributes if you trigger it within the resource body. |
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.14.0
Terraform version:
Terraform v1.0.2
on darwin_amd64
Code in Module, main.tf
The auto complete for local variables didn't work inside the ingress and egress inline blocks.
Autocomplete works here though. Also notice how the keyword "local" has different colour between the two places.
The text was updated successfully, but these errors were encountered: