Don't cause tests to hang because of UnsupportedAbiVersion notification

This commit is contained in:
Valentin Kipyatkov
2015-10-16 19:14:00 +03:00
parent e42bb1698d
commit 5e7fd78028
@@ -195,6 +195,7 @@ public class UnsupportedAbiVersionNotificationPanelProvider extends EditorNotifi
public EditorNotificationPanel createNotificationPanel(@NotNull VirtualFile file, @NotNull FileEditor fileEditor) {
try {
if (DumbService.isDumb(project)) return null;
if (ApplicationManager.getApplication().isUnitTestMode()) return null;
if (file.getFileType() != JetFileType.INSTANCE) return null;
if (CompilerManager.getInstance(project).isExcludedFromCompilation(file)) return null;