Skip to content

Git - update DotGit file watcher to ignore worktree index.lock files - #303504

Merged
Ladislau Szomoru (lszomoru) merged 2 commits into
mainfrom
lszomoru/linguistic-rabbit
Mar 20, 2026
Merged

Ladislau Szomoru (lszomoru) merged 2 commits into
mainfrom
lszomoru/linguistic-rabbit

Conversation

@lszomoru

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 20, 2026 13:16
@vs-code-engineering vs-code-engineering Bot added this to the 1.113.0 milestone Mar 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Git extension’s .git directory file watching to reduce unnecessary git status triggers by ignoring index.lock changes in worktree-specific git directories.

Changes:

  • Extend DotGitWatcher’s ignore filter to exclude worktree index.lock paths.
  • Update inline comments describing ignored .git changes.

Comment thread extensions/git/src/repository.ts Resolved
Comment thread extensions/git/src/repository.ts Resolved
@lszomoru
Ladislau Szomoru (lszomoru) merged commit 7dcd2c9 into main Mar 20, 2026
18 checks passed
@lszomoru
Ladislau Szomoru (lszomoru) deleted the lszomoru/linguistic-rabbit branch March 20, 2026 16:47
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants