-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete lowercase JSX elements #719
Conversation
let htmlElements = | ||
[ | ||
("a", "Defines a hyperlink.", false); | ||
("abbr", "Defines an abbreviated form of a longer word or phrase.", false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this compare with the complete list currently supported? A subset? (E.g. aria).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, not sure I follow what you mean..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is a selection of all the possible ones accepted by the type checker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No I think the type checker would accept anything, I think the JSX tag name is just turned into a string by the PPX. So this is strictly about providing completion/information for something that we don't really have (or care) about type information for right now. So it's strictly an addon/extra help.
53b0513
to
4428d03
Compare
This adds completion for lowercase JSX elements, treating them like HTML elements.
Potential follow up for this - there's a heuristic in the hover mechanism that detects lowercase elements. Maybe we should leverage this new list of elements and descriptions in there too? It currently shows some fairly irrelevant things.