don't save all documents after every command involving file system changes under VCS: seems to be not needed

This commit is contained in:
peter
2016-03-18 08:52:58 +01:00
parent 4304a317a6
commit e87a9fb7dc
@@ -490,15 +490,6 @@ public abstract class VcsVFSListener implements Disposable {
if (myCommandLevel == 0) {
if (!myAddedFiles.isEmpty() || !myDeletedFiles.isEmpty() || !myDeletedWithoutConfirmFiles.isEmpty() || !myMovedFiles.isEmpty() ||
! myDirtyFiles.isEmpty()) {
// avoid reentering commandFinished handler - saving the documents may cause a "before file deletion" event firing,
// which will cause closing the text editor, which will itself run a command that will be caught by this listener
myCommandLevel++;
try {
FileDocumentManager.getInstance().saveAllDocuments();
}
finally {
myCommandLevel--;
}
doNotDeleteAddedCopiedOrMovedFiles();
checkMovedAddedSourceBack();
if (!myAddedFiles.isEmpty()) {