commitDocument exceptions shouldn't fail the entire save (IDEA-101980)

This commit is contained in:
peter
2013-02-27 14:58:36 +01:00
parent 149009eb41
commit 3b8b7b84cb
@@ -819,7 +819,12 @@ public class PsiDocumentManagerImpl extends PsiDocumentManager implements Projec
// Ensure all documents are committed on save so file content dependent indices, that use PSI to build have consistent content.
UIUtil.invokeLaterIfNeeded(new Runnable() {
public void run() {
commitAllDocuments();
try {
commitAllDocuments();
}
catch (Exception e) {
LOG.error(e);
}
}
});
}