Visual Studio Code freezes after short while "The window is not responding"

Question:

Problem:
I can open VS code and start typing but after ~30s (sometimes minutes) the window freezes showing this message:

enter image description here

I am using python on a jupyter notebook with only a couple of unspectacular lines which I don’t show because I tried different content. Last time it crashed after about 2 min of just import pandas as pd, df = pd.read_csv(path_to_file), print(df)

I think it does not crash when I don’t start typing but just wait, at least not as fast

Yesterday everything was still fine. Today with the same setup not.

System information:

Windows 11 home
The only VS extensions installed are
Python v2022.7.11331006
Pylance v2022.5.1
Jupyter v2022.5.1001351004
Jupyter Keymap v1.0.0
Jupyter Notebook Renderers
Which other information is needed to help?

Attempts (not resolving the problem):

  1. Work from a different folder with a new file/code
  2. Disabling extensions (but notebook will not work without some)
  3. Uninstall/reinstall same version (x64-1.67.1)
  4. Uninstall/install previous version (1.66.1)
  5. Unistall/install insider version (x64-1.68.0-insider)
  6. Disable all online connecting services in VS, disconnecting from internet.
  7. Rollback of last windows patch update
  8. Delete backup folders in %AppData%/Code/..
  9. Graphic card is up-to-date
  10. I am reluctant to disable stuff that makes the dell xps faster (and expensive)
Asked By: le8rning

||

Answers:

This is caused by the latest Pylance extension. You can revert to earlier Pylance extension to solve the problem. This problem will be fixed in a new version in a few days according to the github.

Answered By: MingJie-MSFT

I am getting same issue but I don’t have Pylance extension installed for my work in vscode. what can be other issue related to this?

Answered By: princeoo7