My experience with VS code has been excellent over the years, but I recently encountered a problem in one of my projects that caused a significant slowdown in performance. Strangely, other projects are working fine without any issues on VS code. I suspect that there's something specific to this troubled project causing the slow-down. Despite trying to troubleshoot by deleting and re-cloning the repository, as well as reinstalling VS code, the lag persists. It now takes up to a minute for the editor to update changes.
Here is the status report of VS code when the issue occurs:
Version: Code 1.63.0 (7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e, 2021-12-07T05:15:48.091Z)
OS Version: Darwin arm64 20.6.0
CPUs: Apple M1 (8 x 24)
Memory (System): 8.00GB (0.16GB free)
Load (avg): 5, 3, 3
VM: 0%
Screen Reader: no
... (CPU/Memory stats truncated for brevity) ...
Workspace Stats:
| Window (Home.module.scss — intl_rail_frontend)
| Folder (intl_rail_frontend): 1059 files
| File types: js(252) json(163) ts(89) tsx(69) woff(52) eot(52) pack(47)
| scss(32) png(30) map(28)
| Conf files: package.json(9) tsconfig.json(4) settings.json(1)
I am using a Mac with an M1 chip running macOS Big Sur v11.6.