idea-cloudformation icon indicating copy to clipboard operation
idea-cloudformation copied to clipboard

Provide Smart Completion for Ref values

Open TarasTielkes opened this issue 11 years ago • 5 comments

Inside the value for the "Ref" intrinsic function, smart completion (Ctrl-Shift-Space) could be provided.

It would match expected property type with available resource types.

TarasTielkes avatar Apr 14 '14 07:04 TarasTielkes

just tested this and it works ...

sebsto avatar Apr 16 '14 20:04 sebsto

Sébastien, you probably intended to refer to https://github.com/shalupov/idea-cloudformation/issues/22

TarasTielkes avatar Apr 16 '14 20:04 TarasTielkes

No, I do refer to this one :-) image

sebsto avatar Apr 16 '14 20:04 sebsto

The smart completion key works, but the provided variants are not "smart" yet. In most (all?) IDEA languages smart completion will only suggest things that are definitely assignable/compatible at the place in question.

At the moment, the plugin provides all resource and parameter ids as smart completion variants. "Real" smart completion would only (for example) suggest resources of type "AWS::EC2::NetworkAcl" when smart completing reference for the "NetworkAclId" property of a "AWS::EC2::SubnetNetworkAclAssociation".

TarasTielkes avatar Apr 16 '14 20:04 TarasTielkes

OK - got it - thanks ! Not working for me then :-)

sebsto avatar Apr 16 '14 20:04 sebsto