-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Performance Issues with VScode and Typescript #73470
Comments
Please use this guide to provide more information: https://github.com/Microsoft/vscode/wiki/Performance-Issues. Thanks. |
In fact, this is very difficult to reproduce, I often press F1, then restart the TS Service |
Do you have node-module dependencies? Do you have a rough estimate how many children the node_modules-folder has? |
@jrieken I came here to report the same issue, and I have been able to determine that the slowness does not happen after I remove my node_modules folder. I'm using create-react-app with a few added dependencies so my node_modules folder is pretty large (281Mb) - but uninstalling VS Code 1.33 and installing the Feb release (1.32) fixes my problem. |
@Morphexe Can you share your project? Also, does this reproduce in the latest VS Code insiders build with all extensions disabled? |
Is it likely to be related to this? |
In my case I use styled components withe Typescript 3.3.333 - I had initially suspected styled-components as I have had issues w/ their VS Code extension before. But downgrading VS Code is the easy solution for me |
Closing as more information is needed from the original poster @Morphexe Please test this using the latest VS Code insiders builds (using TS 3.5-insiders) and let us know if you still see this issue |
Issue Type: Bug
I have trouble with vscode, this hapeens quite frequently and after open/close it goes away for a few minutes, sometimes over a couple of hours.
Vscode intellisense and even typings lags like hell, I can see the characters being typing slowly, also its using HUGE ammounts of ram for GPU rendering.
I have caught vscode hogging around 8GB of ram, although it was debugging, but I still feel thats too much.
I can't seem to pin point what exactly is causing this, I have tried without extentions and eventually it all does the same.
Attached is a print of my process explorer where you can see that the GPU process is hogging around 1GB, and so is TSServer. Notice that although I am currently on a surface pro, this happens in my own Desktop which has a 1080GTX and a 16gb Ram with Ryzen 1700. So something else is causing this.
On a side note, the project is not that big, it has around 2000 lines across 20ish files.
Any ideas on how to debug this?
VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17134
Process Explorer
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (21)
The text was updated successfully, but these errors were encountered: