pulumi / pulumi-yaml

YAML language provider for Pulumi
Apache License 2.0
38 stars 11 forks source link

List all available properties in error message instead of grouping them as "and X others" #460

Open jamest-gaia opened 1 year ago

jamest-gaia commented 1 year ago

Hello!

Issue details

When I'm developing something in AWS Crosswalk using YAML it would save me a bunch of time if I could see the available properties right in the error message. See screenshot image

Affected area/feature

RobbieMcKinstry commented 1 year ago

Hi @jamest-gaia Thanks for opening this issue. I can see how that would improve your ability to address the error. I suppose the current approach is an attempt to limit the size of log lines for resources with a large number of arguments. I suppose its a trade-off between these two usability cases, but it's possible we haven't struck the perfect balance here.

aureq commented 1 year ago

@RobbieMcKinstry A few ideas for the improvement since there's no native YAML completion.

jamest-gaia commented 1 year ago

Thanks @aureq , having --verbose (and being guided to use it) would be very satisfactory to me.

Also, a visual indication or grouping of required vs optional properties would also be very helpful.