-
-
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
Multi root support #424
Comments
If you need any testing, I have a use case explained here: #423 (comment). I'll be happy to test any progress on this feature. |
One workaround could be found here: #423 (comment). |
I had issues where this and vscode-jest both wanted to be the first (root) folder. Fixed things to some extent - quick and dirty fix adding multi-root support for Vetur lives here: https://github.com/brandonson/vetur Clone to your extensions dir and follow setup from Vetur's CONTRIBUTING.md. After the compile step you should be good to go. It is, as mentioned, a quick dirty fix that iterates through the workspace folders looking for a Edit to add: See the |
Any action on this? It's been more than a year and this is still broken. |
I have a monorepo project with one of the packages being a vue client project with vuetify dependency.
If I run VSCode from "dependencies": {
"vue": "^2.6.10",
"vue-apollo": "^3.0.2",
"vue-router": "^3.1.3",
"vuetify": "^2.1.10",
"vuex": "^3.0.1"
}, This doesn't seem to have side effects for me at the moment. |
This problem definitely needs a real fix. I found a workaround that worked specifically in my case: I had a vscode workspace file like
The "activities-frontend" folder had my Vue project in it, but Vetur was trying to use the tsconfig.json in my "activities-backend" folder. I fixed it by rearranging my workspace file like
. That got rid of the inappropriate Vetur errors that looked kinda like I haven't tested this with a workspace that has more than one Vue project in it, but I suspect this workaround would fail for that. |
A related Vetur issue https://issuehunt.io/r/vuejs/vetur/issues/815 has a bounty of $264 so far. |
@mesqueeb has funded $10.00 to this issue.
|
Hi guys. I just funded $10 to this issue. My use case:
My current issue:
I hope this funding can promote others to also fund this issue and I hope to see full support for Lerna Monorepo's soon!! <3 |
@garyo has funded $10.00 to this issue.
|
Same here ($10). I'm using Emacs with eglot in a Yarn workspaces monorepo where the Vue front-end project is in one of the workspaces. |
I can confirm that this solution works. Moving your |
An anonymous user has funded $5.00 to this issue.
|
oh, my god! who can fix the bug? |
#1734 seems to work with |
@Minigugus that would be a dream come true 😍 I hope someone can test and merge soon <3 |
In case someone need, here is a transition tool that can be used before Vetur support multi root: |
Thanks for that! Works great, but it throws some linting errors that Vetur doesn't throw :/ |
This works around lack of multi-root support in vetur: vuejs/vetur#424 (comment)
This problem has been going on for a long time, and there are many projects that require multi root I have seen some PRs addressing the multi-root issue, I hope you can consider leaving it as an option to enable or disable to temporarily resolve the extension's multi rool issue until you have a good solution ! Thanks you ! |
An anonymous user has funded $20.00 to this issue.
|
@tobspr has funded $100.00 to this issue.
|
An anonymous user has funded $100.00 to this issue.
|
An anonymous user has funded $5.00 to this issue.
|
Explore support for VSCode's new Multi-root workspace feature.
Notably,
rootPath
now can be a list.https://github.com/Microsoft/vscode/wiki/Extension-Authoring:-Adopting-Multi-Root-Workspace-APIs
This is somewhat different from #385, depending on the way the user uses VSCode.
For the following app,
/app
in one Window. Vetur support for/client
is Support sub folders and multiple tsconfig files in one window #385./app/client
,/app/server
as two top-level folders. That's this issue.IssueHunt Summary
Backers (Total: $250.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
The text was updated successfully, but these errors were encountered: