-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
vs code hangs for while when pressing the tab key for the first time #6816
Comments
I've noticed this as well even after doing
|
@M-Zuber Which view has the focus when you press tab? If it is in an editor, what type of file is it (JavaScript, HTML...)? |
On a clean open of Code, blank file with focus on the file. |
Just to reiterate, it happens to me on any type of file - usually only for the first time I press tab after opening vscode (but sometimes also in the middle of working) |
When it is the tab key and happens on first time, then this is the loading of the emmet node module.
however this doesn't explain this, since the emmet module is loaded only once into the renderer process. @alexandrudima any other ideas what could go on? |
Yes this is caused by emmet loading the first time it is invoked. @M-Zuber once the May release comes out you can use the following rule in your
Here I am loading emmet (typing tab for the first time in a html file) on my quite powerful desktop at home: 488ms to load. I think the way forward here is to move emmet to an extension, thus the 500ms loading hit will be taken by the extension host. |
Thank you for the help.
I played around a bit, and it would seem that it only happens either on first use in a new instance of |
emmet loading... |
#21943 looks into having emmet features come from an extension rather than the tightly coupled in built way it is integrated today. Closing this issue as the work done in #21943 will have a better user experience. If #21943 doesn't pan out, then we will get back to see if there is something we can do to improve the first time experience. |
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: