From 320f0717b23317771b53e5cefd041394fb7ddef5 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 16 Jan 2019 15:57:51 +0100 Subject: [PATCH] semi-revert "don't stop spell checker during headless run by timeout" because tests hang otherwise --- .../src/com/intellij/spellchecker/inspections/BaseSplitter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spellchecker/src/com/intellij/spellchecker/inspections/BaseSplitter.java b/spellchecker/src/com/intellij/spellchecker/inspections/BaseSplitter.java index 83b1b821bd56..c65bf0907b77 100644 --- a/spellchecker/src/com/intellij/spellchecker/inspections/BaseSplitter.java +++ b/spellchecker/src/com/intellij/spellchecker/inspections/BaseSplitter.java @@ -136,7 +136,7 @@ public abstract class BaseSplitter implements Splitter { return new StringUtil.BombedCharSequence(substring) { @Override protected void checkCanceled() { - if (ApplicationManager.getApplication().isHeadlessEnvironment()) return; + //todo[anna] if (ApplicationManager.getApplication().isHeadlessEnvironment()) return; long l = System.currentTimeMillis(); if (l >= myTime) { throw new ProcessCanceledException();