jardicc / vscode-uxp-validator

MIT License
13 stars 0 forks source link

`host` seems to allow an array #16

Closed Klustre closed 1 month ago

Klustre commented 1 month ago

The manifest supports an array for host, but Validator shows an error: Incorrect type. Expected "object" in the compiled manifest.json.

jardicc commented 1 month ago

That support is declared in documentation on paper. But in reality I never seen it working. If it is working I need a proof.

When you pack plugin using UDT it used to convert array into object silently and pack modified manifest into .ccx file. If you just zip project into ccx it will cause a problem.

Could you please unzip your .ccx and see what is there?

Klustre commented 1 month ago

It does seem to convert it to an object in the ccx… Though it works in development with a Bolt UXP setup.

jardicc commented 1 month ago

I am not sure what bolt exactly does... I think there are some magic comments to remove code... It also might work in developement but might not work in production.

Once you have a proof that array in manifest works please create new issue and I will update rules.