gitkraken / vscode-gitlens

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more
http://gitkraken.com/gitlens
Other
8.85k stars 1.2k forks source link

Extension becomes a CPU hog #3307

Open vthemelis opened 1 month ago

vthemelis commented 1 month ago

Description

The extension calls git commands that can take a very long time (eg more than a day) and keep them running. This shows as a large amount of git processes running on the background each using 100% of the CPU.

Could we add timeouts to these?

What triggered this for me was checking out a huge repo with a tree filter and then blaming a file:

# Clone huge repository with a filter
git clone --filter tree:0 https://github.com/DefinitelyTyped/DefinitelyTyped

and then blame a few files with the extension to reproduce.

Can we add a timeout to git commands?

GitLens Version

15.0.3

VS Code Version

No response

Git Version

No response

Logs, Screenshots, Screen Captures, etc

No response