WebComponents / custom-elements.json support (i.e. autocompletion)
Hi all,
while trying out WebComponents for some weeks now I still wonder how to activate code completion in IntelliJ/Webstorm the right way. I'm aware that there are several aproaches to a descriptive format for WebComponets, including the Jetbrains' web-types approach, which can be found here: https://github.com/JetBrains/web-types
But it seems that the approach of https://github.com/webcomponents/custom-elements-manifest (custom-elements.json) is used by some frameworks to provide documentation for their custom elements instead of providing IDE-branded formats. On reddit there is this "announcement" (https://www.reddit.com/r/Jetbrains/comments/p1wd38/the_jetbrains_webstorm_team_is_here_to_answer/h8j2o0a ) that the manifest will "most likely be supported 'natively'", but this is was half a year ago and it does not seem to be integrated in IntelliJ 2021.3.2.
Is there any plan to do that? Or any hint on how to get the coding benefits in IntelliJ based on that custom-element.json like code completion without the need of having a corresponding web-elements.json?
Best wishes,
Matthias
Please sign in to leave a comment.
It's still planned, please follow https://youtrack.jetbrains.com/issue/WEB-49361 and linked tickets for updates
Here's a tool I put together to translate the custom elements manifest into web-types that may be helpful.
https://www.npmjs.com/package/custom-element-jet-brains-integration