r/vscode 1d ago

VSCode being slow/lagging

Is there a reason why the same repo that i've used has been giving me issues with lagging and being slow all around? Is it to do with the Al "features" in the non stop updates or is there a cache i can clear?

For example: staging changes to commit, it happened near instantaneously. It's taking more than a few seconds to update. The "bar" in source control keeps "Ioadin/buffering" left to right for minutes at a time.

What's going on?

4 Upvotes

1 comment sorted by

1

u/alexdima_msft 21h ago

👋 There is no AI feature involved when staging changes, but the git extension is executing in the extension host which is shared with all other extensions. So if you have recently installed an extension that has a performance problem, it is possible that it keeps the event loop of the extension host busy. You can try:

  1. disabling some of the recent extensions you have installed

  2. try to see if you spot any extension showing that it consumes more CPU than usual using the `F1 > Developer: Show Running Extensions` command -- this will automatically show slow extensions if the extension host has recently been unresponsive or here you can trigger a CPU profile of the extension host when you see things getting slow

  3. moving the git extension to its own extension host (experimental) by using this setting:

    "extensions.experimental.affinity": { "vscode.git": 1 },