Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put git restart guard in a debounce #2771

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

vinistock
Copy link
Member

Motivation

I noticed that I was still seeing the client restart when doing interactive rebases and took a look at our git related guards. We forgot to debounce the restart, which protects against repeated invocations and gives git enough time to create/delete the related files.

Implementation

We still want to set the flag eagerly, but the restart needs to happen in a debounce.

Automated Tests

Created a new test to avoid future regressions.

@vinistock vinistock added bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes labels Oct 24, 2024
@vinistock vinistock self-assigned this Oct 24, 2024
@vinistock vinistock requested a review from a team as a code owner October 24, 2024 17:08
@vinistock vinistock enabled auto-merge (squash) October 24, 2024 17:19
@vinistock vinistock merged commit 43520f0 into main Oct 24, 2024
37 checks passed
@vinistock vinistock deleted the vs-improve-git-restart-guard branch October 24, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants