mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ensure document is committed after possible reformat (IDEA-144277)
This commit is contained in:
@@ -39,6 +39,7 @@ import com.intellij.openapi.ui.Messages;
|
||||
import com.intellij.openapi.util.Ref;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.psi.PsiDocumentManager;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.refactoring.RefactoringBundle;
|
||||
import com.intellij.refactoring.util.CommonRefactoringUtil;
|
||||
@@ -201,6 +202,7 @@ public class DuplicatesImpl {
|
||||
ApplicationNamesInfo.getInstance().getProductName(), duplicates.size()),
|
||||
"Process Duplicates", Messages.getQuestionIcon());
|
||||
if (answer == Messages.YES) {
|
||||
PsiDocumentManager.getInstance(project).commitAllDocuments();
|
||||
invoke(project, editor, provider, hasDuplicates != null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user