Skip to content
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(prettier): Allow a Prettier instance to be optional #81

Merged
merged 5 commits into from Mar 4, 2024

Conversation

Princesseuh
Copy link
Member

Prior to Volar 2.0, it was possible for upstream consumers to simply not initialize the Prettier plugin if they couldn't find Prettier themselves. This is not possible anymore as the resolving of Prettier has to open inside the plugin's hooks (since you need env to try to find Prettier in the first place, and it's not available in createServicePlugin)

Fix #77

@alvgaona
Copy link

alvgaona commented Mar 3, 2024

@Princesseuh when are we expecting this PR to get merged? Any idea?

.gitignore Outdated Show resolved Hide resolved
@johnsoncodehk johnsoncodehk merged commit 2bb1ad1 into master Mar 4, 2024
@johnsoncodehk johnsoncodehk deleted the fix/prettier-optional branch March 4, 2024 19:17
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.

LSP Error: Could not load Prettier: Error: Cannot find module 'prettier' when using astro-ls in neovim
4 participants