mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
some phase changing is allowed
This commit is contained in:
+1
-1
@@ -243,7 +243,7 @@ public class CompletionServiceImpl extends CompletionService{
|
||||
ApplicationManager.getApplication().assertIsDispatchThread();
|
||||
CompletionPhase oldPhase = getCompletionPhase();
|
||||
CompletionProgressIndicator oldIndicator = oldPhase.indicator;
|
||||
if (oldIndicator != null) {
|
||||
if (oldIndicator != null && !(phase instanceof CompletionPhase.BgCalculation)) {
|
||||
LOG.assertTrue(!oldIndicator.isRunning() || oldIndicator.isCanceled(), "don't change phase during running completion");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user