Node version: 18.12.1
Package Manager: pnpm 8.2.0
VSCode version: 1.77.1
prettier version: 2.8.7
prettier-plugin-tailwindcss version: 0.2.6
tailwindcssversion: 3.3.1
OS: macOS Ventura 13.3
Hi :)
I'm dealing with a significant performance issue across all of my SvelteKit projects, after upgrading prettier-plugin-tailwindcss to v0.2.6.
Upon launch, CPU climbs to 100% and higher, which makes coding basically impossible. it seems like the app shell is doing fine, yet the code editing experience (auto-completion, formatting, saving, etc.) completely breaks.
After running the Bisect tool, as the CPU hogging process is Code Helper (Plugin) (or ExtensionHost), It seems like Prettier is the root cause.
It's important to mention that I didn't make any changes in VSCode/prettier configurations.
removing prettier-plugin-tailwindcss entirely from the prettier plugins array / downgrading it to 0.2.5 fixed the issue immediately.
I've attached some screenshots of the activity monitor, VSCode Process Explorer, ps aux, and messages displayed when attempting to save Svelte / TS files (while saving is prevented, and vscode is basically stuck).






// .prettierrc
{
"useTabs": false,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 120,
"bracketSameLine": true,
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"pluginSearchDirs": false,
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte",
"svelteSortOrder": "scripts-markup-styles",
"svelteBracketNewLine": false,
"svelteAllowShorthand": true,
"svelteIndentScriptAndStyle": true
}
}
]
}
Any ideas? 💡
Node version:
18.12.1Package Manager:
pnpm 8.2.0VSCode version:
1.77.1prettierversion:2.8.7prettier-plugin-tailwindcssversion:0.2.6tailwindcssversion:3.3.1OS:
macOS Ventura 13.3Hi :)
I'm dealing with a significant performance issue across all of my SvelteKit projects, after upgrading
prettier-plugin-tailwindcsstov0.2.6.Upon launch, CPU climbs to 100% and higher, which makes coding basically impossible. it seems like the app shell is doing fine, yet the code editing experience (auto-completion, formatting, saving, etc.) completely breaks.
After running the Bisect tool, as the CPU hogging process is
Code Helper (Plugin)(orExtensionHost), It seems like Prettier is the root cause.It's important to mention that I didn't make any changes in VSCode/prettier configurations.
removing
prettier-plugin-tailwindcssentirely from the prettier plugins array / downgrading it to 0.2.5 fixed the issue immediately.I've attached some screenshots of the activity monitor, VSCode Process Explorer, ps aux, and messages displayed when attempting to save Svelte / TS files (while saving is prevented, and vscode is basically stuck).
Any ideas? 💡