File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
platform/core-impl/src/com/intellij Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1010import com .intellij .psi .PsiFile ;
1111import com .intellij .psi .impl .PsiDocumentManagerBase ;
1212import com .intellij .psi .impl .PsiManagerEx ;
13+ import com .intellij .psi .impl .PsiManagerImpl ;
1314import org .jetbrains .annotations .NotNull ;
1415
1516public final class PsiEventWrapperAspect implements PomModelAspect {
@@ -29,7 +30,7 @@ public void update(@NotNull PomModelEvent event) {
2930 ((PsiDocumentManagerBase )PsiDocumentManager .getInstance (file .getProject ())).getSynchronizer ().processEvents (changeSet , file );
3031
3132 if (PomModelImpl .shouldFirePhysicalPsiEvents (file )) {
32- changeSet .fireEvents ();
33+ PsiManagerImpl . runWriteActionOnEdtRegardlessOfCurrentThread (() -> changeSet .fireEvents () );
3334 }
3435 else {
3536 ((PsiManagerEx )file .getManager ()).afterChange (false );
Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ private void fireEvent(@NotNull PsiTreeChangeEventImpl event) {
464464
465465 @ RequiresWriteLock
466466 @ ApiStatus .Internal
467- static void runWriteActionOnEdtRegardlessOfCurrentThread (Runnable action ) {
467+ public static void runWriteActionOnEdtRegardlessOfCurrentThread (Runnable action ) {
468468 if (EDT .isCurrentThreadEdt ()) {
469469 action .run ();
470470 }
You can’t perform that action at this time.
0 commit comments