-
Notifications
You must be signed in to change notification settings - Fork 16
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
This extension blocks the outline view of large markdown files #464
Comments
Please add more information. |
To recap the issue: when this extension is the only one activated (all others are deactivated), the Outline View becomes excessively slow for large markdown files: the VSCode threads goes 100% CPU (core) for a few minutes and the Outline View is stuck displaying "Loading document symbols..." Here are some more information below. Feel free to ask for more specific information. Extension version: WindiCSS Intellisense v0.21.6 VSCode About pageVersion: 1.73.1 |
Here is an example of a big markdown file (with many headings): https://gist.github.com/vibl/3f5a98990c7155669d98de36a2724bb7 |
I can share my own experience, with a large JavaScript file. I went a step further and recorded a profile of the extension. The biggest culprit seems to be this RegExp: windicss-intellisense/src/utils/parser.ts Line 87 in 5c0adbd
You can download the CPU profile I recorded, extract it from zip and load it in VS Code or any Chrome DevTools: |
@mrm007 thank you so much. I hope to get the token issue sorted soon. If that is an option for you, could you share the JavaScript file with me, you can also do this privately in Discord. I could use to test an update. |
@alexanderniebuhr I certainly can — it's the biggest of the Vite 4 chunks and it's around 2MB in size. You can install |
Somewhat related, if you or anyone knows a way to disable extensions based on path (e.g. |
This extension blocks the outline view of large markdown files.
I have no idea why...
All I can say is that the Extension Bisect feature of VSCode proved that this extension was the culprit.
The text was updated successfully, but these errors were encountered: