This issue is not a problem with VS code. It depends on your computer configuration. VS code is not responding maybe because of low ram and processor or too many background processes.
If your computer configuration is well enough, you should check for background processes.