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
feat(language-server): generate template virtual code #69
Conversation
✅ Deploy Preview for vue-vine ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
@johnsoncodehk Thanks for such detailed explanation 🙏!! After trying the new commits, I‘ve got some new questions: Some functions are still not referenced
Those imported variables get "unused" warnings too. TS diagnostics are reported twice
the intellisense options are duplicated. The diagnostics are reported twice. More extensive support
I've talked about this with @so1ve in #53 , I think I can provide a feature-specific API for this All I wanna achieve is to fix #52 #53 , and I think the basic features of Vue Vine language service are done. |
@johnsoncodehk Also mentioned in #53, as long as we need type definitions fromuser source code, we can easily read them on every component context stores a Record of prop name and it's typing source code babel node, so that we can use it's location and copy it into final virtual code for Volar |
From https://github.com/volarjs/insiders/issues/3
There is a fews problems.
For 3. I will update a version for Volar first.
Yes it is possible, let's see after completing the TS plugin. |
…le extensions fixes cannot generate virtual code in ts plugin for vue-vine refs: vue-vine/vue-vine#69
…into template-codegen
…into template-codegen
@johnsoncodehk I got many Errors in every |
Can you reproduce the problem in the playground directory? |
@johnsoncodehk Yes, for now if I want to verify our results for language service support, I'll do:
Could you reproduce the same as what I saw here after following these steps above in your environment? |
This seems to be vuejs/language-tools#3942, which may be related to the extensions you installed. This issue cannot be avoided from us and I will discuss this with the TS team. |
@johnsoncodehk Thanks a lot !!!! After switching from my Linux PC to my Mac, there's indeed not these diagnoses occurred. Everything looks pretty fine now. So I'll merge this PR, and we can open new PRs for further extension features later. |
Oh I figured out ~@johnsoncodehk It seems like that I meet some problems with VSCode extension bundling that after packing out a Can easily reproduce in With some exploring by myself, I can make "Vine Language Server" show but still nothing output correctly. After installing packed VSIX file and I saw Vine language server is working fine with Volar Labs, it shows virtual files and service plugins. |
This is a new draft implementation of Vue Vine language services by Volar 2.
Support variable reference and click jumping into definition.
Migrate to TS plugin to resolve component types to support props intellisense and be compatible with SFC components.