-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ISSUE-10 Fix call to execFile with a file larger than 200KB will fail Update the execFile call to specify the maxBuffer size to be tuneable and larger than 200KB. By default the plugin will now look up the current file size and allocate 2x the buffer to allow room for whitespace and formatting expansion. This also fixes the issue where the plugin could not format files that were large than 200KB. Add a new configuation option to allow a user to tune the buffer multiplier to custom values. Update documentation. * ISSUE-10 Fix a comment * Accidentally inserted tabs. Switch to spaces. * Capture the default maxBuffer size for execFile. Choose the maximum of calculated new multiplier buffer size for a larger file or use the default value for execFile to avoid any pointless buffer resizes.
- Loading branch information
1 parent
b118713
commit bacc9d9
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters