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

Use plenary sync job to get local file content #708

Conversation

GuillaumeLagrange
Copy link
Collaborator

@GuillaumeLagrange GuillaumeLagrange commented Dec 10, 2024

Fixes #608

I gave up on trying to troubleshoot async plenary, and switched to sync, this fixes the empty diff buffer for local mode that is quite hard to reproduce.
Since this is a local git command, and, impact should be minimal, and the only caller of this function waits for the job to be done anyway by calling vim.wait on a condition that is done by the callback

Copy link
Collaborator

@wd60622 wd60622 left a comment

Choose a reason for hiding this comment

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

LGTM

@GuillaumeLagrange GuillaumeLagrange merged commit 47d7467 into master Dec 13, 2024
4 checks passed
@wd60622 wd60622 deleted the 608-empty-content-in-diff-buffer-when-trying-to-fetch-from-commit-at-random-times-1 branch December 13, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty content in diff buffer when trying to fetch from commit at random times
2 participants