mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't save all documents after every command involving file system changes under VCS: seems to be not needed
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user