extension causes VS Code to slow significantly
See original GitHub issueWhat is the problem?
Editing in VS Code slows down significantly when I have Markdown All in One enabled, especially on file sizes larger than 2k LOC.
How can I reproduce it?
I was following an issue on perf problems in the main VS Code repo https://github.com/microsoft/vscode/issues/87021 when I thought to go through my extensions. When I disabled Markdown All in One, VS Code regained it’s normal editing speed.
I checked some potentially related issues https://github.com/yzhang-gh/vscode-markdown/issues/444 but the cpuprofile.txt
file they mention seems to have changed its file path since those tickets were opened.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Here's How to Make VSCode Faster
Here are some things that may be causing VSCode to run slowly, ... The problem is that some extensions may be poorly programmed...
Read more >Is Your VS Code Extension Slow? Here's How to Speed it Up!
One possible cause is the number of files or the size of the extension. Some extensions have so much functionality in them that...
Read more >Is Your VS Code Extension Slow? Here's How to ... - John Papa
One possible cause is the number of files or the size of the extension. Some extensions have so much functionality in them that...
Read more >Do extensions slow down VS Code? : r/vscode - Reddit
Extensions can disable themselves on certain conditions, but not all do. You can disable some extensions in specific workspace, that should help ...
Read more >VS Code Performance – How to Optimize Visual Studio Code ...
The VSIX extension file is a compressed archive of files for the code and the listing in the marketplace. Developers often include unnecessary ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fun fact: We have performance optimization for large files (more than 128 KB), and your test file is 112 KB… If you keep writing and suddenly you will find VSCode get smoother 🤣.
I’m going to change the threshold to 50 KB.
Very cool stuff. 👍
Also, I noticed this slowdown seems particular to VS Code version 1.41 i.e. the most recent build; I have 1.40.2 on my work machine and don’t see any slowdown on larger files, so the root cause may have as much or more to do with VS Code than Markdown All in One (1.41 also broke another extension I use, albeit in a different way).