-
Notifications
You must be signed in to change notification settings - Fork 213
Infinite register of language feature #1319
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
Comments
@AkatQuas Huh this is odd. I don't think I've seen anything like this. I assume this may be some kind of issue with our language server but I'm not sure.
|
My project is a huge pnpm workspace with 500 sub projects, most of them has one I cloned the repository and start the extension debug procedure, it can be reproduced when switching quickly between two files (ts files in my case) from different sub projects. On the output channel in the left, language client sent bunch of |
Having multiple projects could cause capability registration to happen multiple times but it's not supposed to happen a lot. Basically what we do is take the data from all registered projects and figure out what they can do and then register some additional information based on that. We should ba able to simplify at least some of those but for v0–v3 projects completion requests have to be registered dynamically b/c you can change the variant separator. (we just happen to register some more dynamically as well but these could be moved). Lemme look into this some and see what I can come up with. Thanks for the info! |
Another observation, this extension would handle autocompletion for many languageId files. So I use the This might help to reduce the invocation. What a relief for my cpu, 😄 |
Yeah, the extension does handle lots of language IDs because people use Tailwind CSS across lots of different projects so we have to handle a bunch of different file types. I've got a possible fix in #1327 — if you test that on your project does the behavior improve? |
It seems #1327 works perfectly when switching files among projects. Not a chance to reproduce cpu stuck with this fix. Thanks ! |
What version of VS Code are you using?
Version: 1.98.2
Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78
Date: 2025-03-12T13:32:45.399Z
Electron: 34.2.0
ElectronBuildId: 11161602
Chromium: 132.0.6834.196
Node.js: 20.18.2
V8: 13.2.152.36-electron.0
OS: Darwin arm64 23.6.0
What version of Tailwind CSS IntelliSense are you using?
v0.14.15
What version of Tailwind CSS are you using?
For example: v2.0.4
What package manager are you using?
pnpm
What operating system are you using?
macOS
Tailwind config
Private config.
VS Code settings
Reproduction URL
Private project.
Describe your issue
Infinite register of language feature. Don't know what triggers this.
It has been 3 weeks since report from my colleagues.
The text was updated successfully, but these errors were encountered: