invoke postprocess reformatting for the current file only

This commit is contained in:
Kirill.Safonov
2010-01-06 13:18:48 +03:00
parent 08f80ed083
commit 83bc825c20
@@ -162,7 +162,7 @@ public class SingleRootFileViewProvider extends UserDataHolderBase implements Fi
if (component.isViewProviderLocked(this)) {
throw new RuntimeException("Document is locked by write PSI operations. Use PsiDocumentManager.doPostponedOperationsAndUnblockDocument() to commit PSI changes to the document.");
}
component.doPostponedFormatting();
component.doPostponedFormatting(this);
final PsiFileImpl psiFile = (PsiFileImpl)getCachedPsi(getBaseLanguage());
if (psiFile != null && psiFile.isContentsLoaded() && getContent()instanceof DocumentContent) {
setContent(new PsiFileContent(psiFile, getModificationStamp()));