Skip to content

Commit

Permalink
https://github.com/manifold-systems/manifold/issues/531
Browse files Browse the repository at this point in the history
- forward exceptions directly esp. ProcessCanceledException
  • Loading branch information
rsmckinney committed Dec 1, 2023
1 parent 875fdd6 commit ff2b41b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/manifold/ij/util/SlowOperationsUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import com.intellij.openapi.application.AccessToken;
import com.intellij.util.SlowOperations;
import manifold.util.ManExceptionUtil;

import java.util.concurrent.Callable;

Expand All @@ -39,7 +40,8 @@ public static <T> T allowSlowOperation( String tag, Callable<T> operation )
}
catch( Exception e )
{
throw new RuntimeException( e );
// must not wrap in RuntimeException e.g., ProcessCanceledException must flow through for handling by IJ
throw ManExceptionUtil.unchecked( e );
}
}
}

0 comments on commit ff2b41b

Please sign in to comment.