You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your issue
Starting the Tailwind CSS IntelliSense extension in VSCode (in a specific project) takes my CPU usage from ~2% to over 90%. This happens with the aforementioned extension versions. If I install an earlier version, my CPU usage is fine.
The project that I experienced the issues in does not use tailwind in itself. If I check Activity monitor, I can see that VSCode has started a bunch of processes called rg (related to file searching?)
Looking closer at these processes by running ps aux | grep <process id> in the terminal, they seem to refer to a bunch of other extensions (nrwl.angular-console, vscode-eslint, code-spell-checker, vscode-yaml) but I don't think they are the culprits as it's only when I start the tailwind extension that my CPU goes through the roof. One of the extensions that the processes are referring to is the json-language-features extension that comes prebundled with vscode, which I don't want to disable.
The temporary fix for me right now is disabling the tailwind extension or using v0.12.13
The text was updated successfully, but these errors were encountered:
@ChristianAgren after playing some time around, I could solve the issue by adding
"tailwindCSS.experimental.configFile": "./apps/web/tailwind.config.ts" <- Your tailwind.config.ts path
to the settings.json.
It seems that tailwind is kind of stuck in locating server. We are using a large monorepo, perhaps it is scanning everything (incl. node_modules) which takes some time (just guessing). This solved it for us, now ramps up to 90% but instantly goes back to 5%. :)
What version of VS Code are you using?
v1.96.0
What version of Tailwind CSS IntelliSense are you using?
v.0.12.16, v0.12.15, v0.12.14
What operating system are you using?
macOS Ventura 13.6
VS Code settings
Describe your issue
Starting the Tailwind CSS IntelliSense extension in VSCode (in a specific project) takes my CPU usage from ~2% to over 90%. This happens with the aforementioned extension versions. If I install an earlier version, my CPU usage is fine.
The project that I experienced the issues in does not use tailwind in itself. If I check Activity monitor, I can see that VSCode has started a bunch of processes called rg (related to file searching?)
Looking closer at these processes by running
ps aux | grep <process id>
in the terminal, they seem to refer to a bunch of other extensions (nrwl.angular-console, vscode-eslint, code-spell-checker, vscode-yaml) but I don't think they are the culprits as it's only when I start the tailwind extension that my CPU goes through the roof. One of the extensions that the processes are referring to is the json-language-features extension that comes prebundled with vscode, which I don't want to disable.The temporary fix for me right now is disabling the tailwind extension or using v0.12.13
The text was updated successfully, but these errors were encountered: