mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
postfix completion: inplace introduce variable: ensure doc committed when handler is started inside writeAction
test: switch on inplace mode in tests EA-86900 - RE: PostprocessReformattingAspect.beforeDocumentChanged
This commit is contained in:
+5
@@ -86,6 +86,11 @@ public class IntroduceVariablePostfixTemplate extends PostfixTemplateWithExpress
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isInplaceAvailableInTestMode() {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+1
@@ -422,6 +422,7 @@ public class JavaVariableInplaceIntroducer extends AbstractJavaInplaceIntroducer
|
||||
finally {
|
||||
myDeleteSelf = true;
|
||||
}
|
||||
PsiDocumentManager.getInstance(myProject).doPostponedOperationsAndUnblockDocument(myEditor.getDocument());
|
||||
initOccurrencesMarkers();
|
||||
return variable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user