From e9c7d989d4e85967faef8ebc99d50d36fa1a90cd Mon Sep 17 00:00:00 2001 From: Konstantin Nisht Date: Tue, 3 Feb 2026 09:25:11 +0100 Subject: [PATCH] [threading] IJPL-229379: Remove useless assertion In the world with background write action, this is not dangeorus anymore GitOrigin-RevId: bb74739da902529d41cb6fa2bc17f6efb158b828 --- .../src/com/intellij/openapi/progress/impl/ProgressRunner.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/platform/core-impl/src/com/intellij/openapi/progress/impl/ProgressRunner.java b/platform/core-impl/src/com/intellij/openapi/progress/impl/ProgressRunner.java index 1230d2684304..e225bfc3c6bd 100644 --- a/platform/core-impl/src/com/intellij/openapi/progress/impl/ProgressRunner.java +++ b/platform/core-impl/src/com/intellij/openapi/progress/impl/ProgressRunner.java @@ -313,9 +313,6 @@ public final class ProgressRunner { if (!EDT.isCurrentThreadEdt()) { return false; } - if (isSync && !ApplicationManager.getApplication().isWriteIntentLockAcquired()) { - throw new IllegalStateException("Running sync tasks on pure EDT (w/o IW lock) is dangerous for several reasons."); - } if (!isSync && isModal) { throw new IllegalStateException("Running async modal tasks from EDT is impossible: modal implies sync dialog show + polling events"); }