mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
write action required
This commit is contained in:
@@ -229,12 +229,12 @@ public class PasteHandler extends EditorActionHandler implements EditorTextInser
|
||||
VirtualFile virtualFile = file.getVirtualFile();
|
||||
if (!pastedTextContainsWhiteSpacesOnly && (virtualFile == null || !SingleRootFileViewProvider.isTooLargeForIntelligence(virtualFile))) {
|
||||
final int indentOptions1 = indentOptions;
|
||||
PsiDocumentManager.getInstance(project).doPostponedOperationsAndUnblockDocument(document);
|
||||
|
||||
ApplicationManager.getApplication().runWriteAction(
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
PsiDocumentManager.getInstance(project).doPostponedOperationsAndUnblockDocument(document);
|
||||
switch (indentOptions1) {
|
||||
case CodeInsightSettings.INDENT_BLOCK:
|
||||
if (!indented.get()) {
|
||||
|
||||
Reference in New Issue
Block a user