mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SmartEnterProcessor#commit method restored to fix binary compatibility with Kotlin plugin (KT-11844)
This commit is contained in:
+5
-2
@@ -72,12 +72,15 @@ public abstract class SmartEnterProcessor {
|
||||
return PsiDocumentManager.getInstance(project).hasUncommitedDocuments();
|
||||
}
|
||||
|
||||
public static void commit(@NotNull final Editor editor) {
|
||||
protected void commit(@NotNull final Editor editor) {
|
||||
commitDocument(editor);
|
||||
}
|
||||
|
||||
public static void commitDocument(@NotNull Editor editor) {
|
||||
final Project project = editor.getProject();
|
||||
PsiDocumentManager.getInstance(project).commitDocument(editor.getDocument());
|
||||
|
||||
//some psi operations may block the document, unblock here
|
||||
PsiDocumentManager.getInstance(project).doPostponedOperationsAndUnblockDocument(editor.getDocument());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user