-
Notifications
You must be signed in to change notification settings - Fork 24
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 foreach and each.* schema extensions #142
Conversation
@@ -533,7 +536,7 @@ func TestCompletionAtPos_BodySchema_Extensions(t *testing.T) { | |||
}, | |||
}, | |||
NewText: "for_each", | |||
Snippet: "for_each = ${1:1}", | |||
Snippet: "for_each {\n ${1}\n}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the original snippet was correct - for_each
is not a block, but an attribute, so there's no need for the curly braces and newlines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was following the first example in https://www.terraform.io/language/meta-arguments/for_each#basic-syntax. I missed the quals sign, but thought since it shows map first that is the likely first choice to use
No description provided.