Allow multiple paths for prettierPath
See original GitHub issueIs your feature request related to a problem? Please describe.
I’m using a multi-root workspace in vscode. One of the projects is using yarn v2 which means that prettier isn’t located in node_modules anymore. I have to change prettier.prettierPath
to "prettier.prettierPath": ".vscode/pnpify/prettier"
. However, prettier.prettierPath
is ignored for multi-root workspaces and I get “Failed to load module. If you have prettier or plugins […]”. If I open only the project folder everything works fine.
Describe the solution you’d like
Overload prettierPath
with an array of strings. The extension would look for prettier in each path (left to right) and use the first one it found. For my particular problem I’d use "prettier.prettierPath": ["node_modules/prettier", ".vscode/pnpify/prettier"]
.
It might be an issue with how the extension is loaded entirely.
Describe alternatives you’ve considered Drop the extension. Multi-root workspaces are far better for my productivity than the extensions.
Adopting yarn v2 in every project is not viable.
Additional context
Would love to implement this if the proposal is accepted.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:8 (3 by maintainers)
Top GitHub Comments
Would’ve been nice to let us know that you don’t plan to work on this issue. I don’t believe you wanted us to spam “any updates?” every few weeks, no?
Closing as there has been no activity on this in more than a year.