inxilpro / IntellijAlpine

Alpine.js plugin for IntelliJ IDEs like PhpStorm and WebStorm.
MIT License
49 stars 11 forks source link

Override Required Attributes Inspection for x-bind #46

Open joao-pedro-braz opened 1 year ago

joao-pedro-braz commented 1 year ago

This commit overrides the default Required Attributes Inspection for XML, in a manner that accounts for bounded attributes.

This fixes https://github.com/inxilpro/IntellijAlpine/issues/44.

inxilpro commented 11 months ago

When I run this I get the following:

com.intellij.diagnostic.PluginException: Short name 'RequiredAttributes' is not unique

I tried updating the short name in the plugin.xml file and overriding it in AlpineRequiredAttributesInspection which addresses the issue, but then it appears that this change doesn't do anything, because the following:

<img :src="getSrc()" :alt="getAlt()" />

Triggers:

image

Am I missing the intention of this PR?