Skip to content

Conversation

@joas8211
Copy link

Fixes #1766

Prettier resolves plugins relative to process's current working directory. For the language server it is VSCode's open workspace directory. The CWD probably would be in the node_modules folder if Prettier were to be ran in a separate process (eg. in command line). So it doesn't find node_modules from a sub-directory. That's why it should be resolved relative to formatted file.

@dummdidumm
Copy link
Member

Thank you! #1829 contains a more robust fix so I'll close in favor of that.

@dummdidumm dummdidumm closed this Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extension is not compatible with local prettier-plugin-svelte plugin

2 participants