-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Add support for analyzing vue-class-component and vue-property-decorator #1323
Conversation
d954ea9
to
f427c88
Compare
I will disappear for two weeks. |
5bf17c4
to
74c76da
Compare
cf7cf5a
to
a592bbd
Compare
I fixed the test error. |
Please merge it |
Please merge it!! |
a592bbd
to
283d831
Compare
Please merge it!!!! |
ef21d91
to
8bc884f
Compare
Testing locally, this appears to work perfectly for properties defined on the class. It does seem to exclude both |
8bc884f
to
7e18717
Compare
@yoyo930021 is it possible for you to publish your repo as VS Code extension ? So boring to not have this feature merged yet |
@antsteyer
PS. https://github.com/vuejs/vetur/blob/master/.github/CONTRIBUTING.md |
200d1a6
to
6b89257
Compare
I just tried out this branch and it's working quite well on first glance! Great work! I'm using Vuex in combination with vuex-class-components and it seems this version of Vetur is unable to intellisence beyond "this.store", even though it displays the type correctly. Is this as expected or should this work as well? |
Is there a reason why this still wasn't merged or is it just due to maintainers' capacity? |
@SaphuA Got the same issue, but I guess this should get fixed :( I could maybe take a look, but I've never done any vscode extension development and I don't think I am able to fix this |
6b89257
to
95e2869
Compare
wasn't merged ? how to solve this problem? complie this branch? |
thx, it's work great |
@octref Oh I know. I will fix it. |
97e4bff
to
74374b1
Compare
@yoyo930021 will this also work for https://github.com/nuxt-community/nuxt-property-decorator? |
I don't know this library existed. |
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.
Great work 👍 Sorry it took me this long.
When using the Emit decorator, I get this weird issue when providing an inline event callback in the template. Here's how the event is declared using Emit decorator:
And this is how I'm providing the event callback in the template:
And this is the error I get:
Note: This error does not show up if I pass a function as the callback instead. I think the reason is that when using the Emit decorator, the type of the event is being recognized as Not quite sure if the issue is with Vetur or the vue-property-decorator library. Does anyone else have this same issue? How does Vetur find the type of the events? |
Please open a new issue. |
Fixed #1105.
Fixed #864.
I want to support vue-property-decorator.
Reason:
I'm not add test.
I will try to add.