aws-scripting-guy / cform-VSCode

CloudFormation extension for Visual Studio Code
86 stars 36 forks source link

Is there "show all allowed attributes" support? #35

Open jeffb4 opened 5 years ago

jeffb4 commented 5 years ago

This might be possible, hence posing as question. Is there a way within a certain YAML/JSON CFN context to list schema-legal sub-attributes?

As an example, if I have an AWS::EC2::Instance resource and I go to Properties: (YAML), I get useful autocomplete suggestions when I type 'a', 'b', etc, but the ability to see an entire list of legal properties would be helpful to me.

If this isn't currently possible but is something that would better be a request to redhat.vscode-yaml please let me know and I'll go do so.

aws-scripting-guy commented 4 years ago

Hi, can you please elaborate on the behaviour you'd like to see?

For ec2 instance, you see the list of attributes right away

vs_code_yaml

jeffb4 commented 4 years ago

So after you type in

myEC2Instance:
  Type: AWS::EC2::Instance
  Properties:

I would like to be able to get a list of valid properties (as show up in the example in your screenshot)