-
Notifications
You must be signed in to change notification settings - Fork 195
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
tailwindcss-intellisense spawns ripgrep process that chews CPU on a project without Tailwindcss #986
Comments
Looks like Dev Container's had a similar issue that they fixed / worked around: microsoft/vscode-remote-release#9738 It's not open source (that I can see) so I don't know exactly what they did to fix it but one of the comments gave me potential ideas to go on. I'll see what I can come up with. Thanks for reporting this! |
Okay so a couple of questions:
You're on an NVMe SSD so I doubt drive speed is not even remotely in play here. I wonder if Docker is doing something weird with those directories that causes directory listing and/or other file operations to slow down. |
I think I've found something similar in my project. It's a Python data project that as part of normal operation will install tens or hundreds of node projects. There's no tailwind install or config in the project root though, is there a sensible way I can disable it? I have the plugin installed for other projects I work on 😃 |
same here |
What version of VS Code are you using?
What version of Tailwind CSS IntelliSense are you using?
v0.10.5
What version of Tailwind CSS are you using?
No tailwind in my current project.
What package manager are you using?
n/a
What operating system are you using?
Fedora Linux 40 with
/home
as a BTRFS subvolume on a local NVMe drive.Tailwind config
N/A
VS Code settings
Describe your issue
If I enable the tailwindcss-intellisense extension and launch VS Code in a project directory that does not have any TailwindCSS code (AFAIK) the extension spawns a
rg
process that uses 1000%+ CPU.This project is an private one that I use to manage container apps on my workstation. It has a data directory that container applications like home assistant, paperless, gitea etc use as volume mounts.
Some of these projects do have
.ts
and.js
files in this directory so maybe it is choking on watching all of those files? Maybe the extension should check for a tailwind config and only spawn therg
process if it knows that TailwindCSS is being used in the project root?The text was updated successfully, but these errors were encountered: