mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
invoke postprocess reformatting for the current file only
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user