-
-
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
Intellisense not recognizing Vue SFC's component #1509
Comments
I've just noticed the same thing. I've checked it in the previous verisons, it stopped working after version 0.22.2. |
@octref Currently with Vetur 0.23.0 and VSCode 1.42.0 it is working fine. Although in the template tag, the nested properties are not visible. It knows that there is an obj variable with test and test2 properties, but there is no intellisense after the dot. Also there is no info about the Vue instance properties, like $router. It is visible in the script tag. |
@octref Ah fine, thanks for the info. Without "props" property (or returning a local variable), it is working, which is interesting. |
Can you create a minimal repro by forking https://github.com/octref/veturpack and open a new issue? |
If |
@yoyo930021 Thanks a lot for finding the issue and providing a fix! |
why dosen't it work for me? |
Info
Problem
Looks like VSCode won't recognize my Vue component in the SFC file, but just an ordinary object:
When I write
this.
, computed propertiespredefinedTags
,computedTags
etc. are suggested as methods because likemode
, they are all declared ascomputed
's member, but I can't get any intellisense suggestions fromdata()
.Output from Vue Language Server log:
The text was updated successfully, but these errors were encountered: