-
-
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
Pick up tsconfig from non-top-level folders #1734
base: master
Are you sure you want to change the base?
Conversation
does not work with multiple roots. |
@yungsilva Thanks for the feedback. Do you have an example of a setup that doesn't work, so that I can try to fix it? |
@Minigugus Monorepo made with https://github.com/yungsilva/monorepo-vetur Run go to And you'll see that the typescript autocomplete doesn't work. But if you open the |
@yungsilva Great, thank you, I'll take a look at it soon 😉 |
@yungsilva Works for me after merging from |
@Minigugus I don't know if I understood it very well, could you explain it better? I already have everything on the master, and it doesn't work, even creating another branch from the master, it doesn't work. Only works did you look at my repository? do I need something more than |
@yungsilva Ok, I'm sorry for not being clear.
Do you mean the You can find debugging instructions here. I don't know how to pack the extension and use it instead of the official
I tried to open your repository with the changes in this PR and it worked fine. I think you are using the wrong extension version; make sure to checkout the branch
|
@Minigugus I'd love to try this as well, I'm not sure how to do it. Do you have easy to follow steps or is it possible to upload your fork of Vetur to VSCode, so I can just disable Vetur extension and try your fork? I think that's easiest for me to test! thanks a lot!! |
@mesqueeb Sure, just clone my fork, checkout my branch, run git clone https://github.com/Minigugus/vetur.git
cd vetur
git checkout subfolders-support
yarn
yarn compile Once done, press F5 in VSCode to run a special VSCode instance that only contains the Vetur extension in debug mode. You can now open a Vue project with |
Is there a reason this hasn't been merged? |
Current , vetur supported multi root project from v0.31.0 |
fixes #385 fixes #424 fixes #815
Support for different configurations in subfolders (with aliases support). Should work with multi-root projets.
Enables proper application of
tsconfig.json
andjsconfig.json
based on the file tree.Demo
#1734 (comment)
Solution
A new pair of
LanguageService
is created for eachtsconfig.json
instead of just for the root one. Thus, #424 is also fixed.Features
tsconfig.json
for each.vue
fileLanguageService
s when atsconfig.json
is created/changed/deletedExamples
IssueHunt Summary
Referenced issues
This pull request has been submitted to:
IssueHunt has been backed by the following sponsors. Become a sponsor