yaml-language-server: [Regression] Cloudformation Support
Originally closed issue in https://github.com/redhat-developer/yaml-language-server/issues/20 but it looks like Cloudformation support is no longer present.

This is with the following tags:
...
"yaml.customTags": [
"!Ref",
"!GetAtt",
"!FindInMap sequence",
"!FindInMap scalar",
"!GetAtt",
"!GetAZs",
"!Cidr",
"!ImportValue",
"!Join sequence",
"!Select",
"!Split",
"!Sub sequence",
"!Sub scalar",
"!And",
"!Equals",
"!If",
"!Not",
"!Or"
]
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 22
- Comments: 23 (5 by maintainers)
This is the full set of required configurations (worked for me):
Hi everyone! Its been a long time coming but I’ve finally got custom tags working when you have a tag with multiple different types. That means in the next version you’re able to do:
and the document will report no errors if you have something like:
Replacing
"!Equals",with"!Equals sequence",in the settings worked for me for thisThis works for me, but if you are using scalar types with those you will have issues
I ended up using this one so far…
The CloudFormation extension has added support to do this configuration automatically. https://github.com/awslabs/aws-cfn-lint-visual-studio-code/pull/65
none of the customTags options work when you mix and max sequence and scalar. it only uses the first one and doesn’t allow for the alternative option. so far the only way to go is
"yaml.validate": false.It appears that after added “!If sequence” to the list of custom tags, I need to restart my editor and it will work.
Not currently. Would you like to contribute one? I can show you where to get started.
It also triggers follow on errors like
missed comma between flow collection entriesbut that seems to be a knock on effect of the previous