Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Steve! Thanks for making such an excellent project.
We have been encountering an issue with git-js in our environment. Our Salesforce team is using git-js through another package sfdx-git-delta which is a git based diff tool for packaging Salesforce projects.
The issue we're encountering is that occasionally, under heavy and concurrent load, SGD receives an incomplete file from git-js. This is due to the fact that git-js listens to the exit event and will return early from the git show command thereby chopping off the end of the file.
This PR removes the exit listener altogether and that fixes our issue. I see in the completion plugin docs that you were planning on turning off the exit listener at some point but maybe decided not to. Are you happy with the idea of removing the exit listener altogether? Nodejs docs say close happens after exit and that it happens after stdout & stderr are closed.