fix tests: invoked later reparseFiles(file) interfere with highlighting in tests

This commit is contained in:
Sergey Simonchik
2016-06-08 11:33:04 +03:00
parent d29f32aca5
commit c60e97cd08
@@ -82,7 +82,7 @@ public final class LanguageSubstitutors extends LanguageExtension<LanguageSubsti
if (ApplicationManager.getApplication().isDispatchThread()) {
runnable.run();
}
else {
else if (!ApplicationManager.getApplication().isUnitTestMode()) {
ApplicationManager.getApplication().invokeLater(runnable, modalityState);
}
}