mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup psi change handler: looks like assertEDT is not needed
GitOrigin-RevId: 03c1f8163dacf2b277f4522448d34545729f3133
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cc7788d278
commit
49c0bc888d
@@ -73,8 +73,6 @@ final class PsiChangeHandler extends PsiTreeChangeAdapter implements Runnable {
|
||||
}
|
||||
|
||||
private void updateChangesForDocument(@NotNull Document document) {
|
||||
Application application = ApplicationManager.getApplication();
|
||||
application.assertIsDispatchThread();// to prevent changedElements corruption
|
||||
if (myProject.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
@@ -102,6 +100,7 @@ final class PsiChangeHandler extends PsiTreeChangeAdapter implements Runnable {
|
||||
else {
|
||||
selectedPsiFile = getRawCachedPsiFile(selectedEditor.getDocument());
|
||||
}
|
||||
Application application = ApplicationManager.getApplication();
|
||||
if (selectedPsiFile != null && !application.isUnitTestMode()) {
|
||||
application.invokeLater(() -> {
|
||||
if (!selectedEditor.isDisposed() &&
|
||||
|
||||
Reference in New Issue
Block a user