We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The built in LSP formatter doesn't format the code if it detects Svelte 5 features, like snippets or runes.
Write a .svelte file that is using one of the new features (like runes or snippets) and try to format the code.
The LSP should format the code.
Neovim with Conform and the Svelte LSP for fomatting.
svelte-language-server
No response
The text was updated successfully, but these errors were encountered:
Duplicate of #2338. Svelte 5 currently require a workspace version of prettier-plugin-svelte and a prettier config file.
https://github.com/sveltejs/kit/blob/main/packages/create-svelte/shared/%2Bprettier/.prettierrc
Sorry, something went wrong.
When I add the following to the workspace .prettierrc file, prettier stops working for .svelte files.
"plugins": ["prettier-plugin-svelte"], "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
prettier-plugin-svelte is updated to the latest version. I use typescript
When I add the following to the workspace .prettierrc file, prettier stops working for .svelte files. "plugins": ["prettier-plugin-svelte"], "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] prettier-plugin-svelte is updated to the latest version. I use typescript
sorry @sebwib, but i think you should open a new issue, this ones closed
No branches or pull requests
Describe the bug
The built in LSP formatter doesn't format the code if it detects Svelte 5 features, like snippets or runes.
Reproduction
Write a .svelte file that is using one of the new features (like runes or snippets) and try to format the code.
Expected behaviour
The LSP should format the code.
System Info
Neovim with Conform and the Svelte LSP for fomatting.
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: