Closed J-env closed 7 months ago
Completions for HTML attributes is powered by custom data instead of types. It's done that way because HTML custom data has generally much richer information available in both how to complete the completion, the attributes value or the hover description.
It'd be nice to support somehow both types and custom data, but it's quite challenging notably because of the speed difference in getting the HTML completions vs the TS ones, not to mention the duplicate completions they'd provide.
Since this is not a bug, and more so a feature request, I'll move this to the discussion area, thank you!
Describe the Bug
Set custom properties according to the official documentation, but the editor prompt does not work. astro docs
Steps to Reproduce
npm init astro
using templatesrc/custom-attributes.d.ts