Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 894
Ayush Shah Avatar asked Nov 24 '25 09:11

Ayush Shah


2 Answers

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.

like image 134
Steven-MSFT Avatar answered Nov 25 '25 23:11

Steven-MSFT


I was working with 2025.2.1 and noticed a huge slowdown and it didn't matter how big the project was. It was very odd as it would autocomplete very fast outside of a function, but then take a few seconds within a function after an arbitrary line of code.

I rolled back to 2024.10.1 and it is blazing fast again for autocomplete even on my large project with tens of thousands of lines of code.

like image 26
Justin Crapse Avatar answered Nov 25 '25 23:11

Justin Crapse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!