Also show the dialog "Slow Save Actions" the very first time a file is saved since the Workbench was started #2340
+2
−15
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.
If some slow save action is performed after saving the very first file since the user started the Workbench (Eclipse) the dialog that informs the user that a save action is slow should appear. Currently, this dialog only appears after the first batch of slow actions is finished.
What it does
Offers the user to deactivate slow save actions even if this is the very first file being saved since the workspace was initiated.
How to test
A small hack to help testing
Add this delay into
org.eclipse.jdt.core.manipulation.OrganizeImportsOperation.createTextEdit(IProgressMonitor)and use the Organize Imports action to test:Expected behavior
You should see the dialog that suggests to deactivate the slow save action:
Current behavior (before this PR)
This dialog will not show up the very first time you save a file in the workspace and a save action takes more 2 seconds.
Author checklist