Search code examples
pythonvisual-studio-codeautocompletepylance

VS Code Pylance works slow with much delay


When I try to use the autocomplete using Pylance it is stuck there for some time

and After Some time like 3 ~ 5 seconds the pop up with auto-complete shows up

Python Language Server is already set to Pylance

What I've tried so far.

Reinstall Python Extension.

Reinstall VS Code

Restarted Python Language Server

Reset VS Code

Reinstall Pylance.

But None of the above seems to work


Solution

  • It works well on my computer, how do you open this python file?

    Try moving your code to its own folder and opening that up instead of opening up some big folder that contains a lot of files. This does show a performance hole where large workspaces take a while to load.

    You can refer to this page for more details.