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

This commit is contained in:
peter
2013-02-27 16:25:24 +01:00
parent 1ea31abaa3
commit a917796bb2
@@ -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);
}
}
});
}