-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
- gitlens|eam|5.5.0
- VSCode Version: Code 1.17.0 (be377c0faf7574a59f84940f593a6849f12e4de7, 2017-10-05T06:07:51.906Z)
- OS Version: Darwin x64 16.7.0
Steps to Reproduce:
- switch from vscode to terminal (so that vscode is in the background)
- touch file (or do something that touches files, like a
git pull --rebase) - see that
getStatusForRepo('/my/path/to/repo')is called in GitLens output channel - if operation in terminal needs .git/index.lock (e.g. a git rebase operation), it may fail, since the GitLens
getStatusForRepomay be holding the lock.
vscode's grabbing of the .git/index.lock has been the source of a number of issues filed against it, the main one of which is microsoft/vscode#11918
other extensions are now being identified that do the same thing, such as:
letmaik/vscode-git-tree-compare#24
The behavior of GitLens can be sidestepped with gitlens.gitExplorer.includeWorkingTree": false, but I think GitLens should either not call git status when vscode is in the background via the mechanism introduced in microsoft/vscode@475fb0e, or it should instruct git (well, future versions of git) to not grab the lock during git status calls via the mechanism in microsoft/vscode#35513
hvdklauw, shairez, abernix, sudowork, shuraa and 1 more