JetBrains / web-types

JSON standard for documenting web component libraries for IDEs, documentation generators and other tools
Apache License 2.0
286 stars 25 forks source link

Named component import #31

Closed webistomin closed 3 years ago

webistomin commented 3 years ago

Hi! I have a problem when I import vue component with the named export.

I'm making my component library, but let's take a look at bootstrap-vue, because they have the same problem.

When I use global vue components via Vue.component(...) or Vue.use(...) – everything fine. It shows me the description and all available props. image

But when I import component in my SFC and register it locally – web-types doesn't work. It shows me only default Vue directives, attributes, etc. image

Thanks for helping.

piotrtomiak commented 3 years ago

@webistomin I am sorry that you're having this issue. Unfortunately I haven't implemented source -> web-types support in WebStorm. I've filed it as an issue in the product - https://youtrack.jetbrains.com/issue/WEB-50164 - please vote to receive updates. I am now in a process of large improvements to web-types support and this issue will be fixed as part of it. You can expect something in May-June 2021 with the first EAPs of 2021.2.

webistomin commented 3 years ago

@webistomin I am sorry that you're having this issue. Unfortunately I haven't implemented source -> web-types support in WebStorm. I've filed it as an issue in the product - https://youtrack.jetbrains.com/issue/WEB-50164 - please vote to receive updates. I am now in a process of large improvements to web-types support and this issue will be fixed as part of it. You can expect something in May-June 2021 with the first EAPs of 2021.2.

Thanks!

mkarras commented 3 years ago

Can't wait for it to be released! :)

piotrtomiak commented 3 years ago

@mkarras Working on it :)

mkarras commented 3 years ago

Hey @piotrtomiak, 2021.2 was released some days ago, but locally registered components with intellisense still not working for me. Should it work or was it not released?

piotrtomiak commented 3 years ago

@mkarras Sorry, it shouldn't work yet. Haven't manage to finish - the whole web-types support turned out to be much more complex in implementation than expected (as it happens quite often ;) ). I am working on Vue script setup support now and going to do a round of bugfixing next, hopefully this issue will be included. You can star https://youtrack.jetbrains.com/issue/WEB-50164 to be be notified about the progress.