From b9500df9ef7befad7638d8a71e48cec88f40435f Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 12 Jan 2016 16:26:00 +0300 Subject: [PATCH] cleanup --- .../codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java index 3fe19a682c40..a4eaa3488a78 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -925,6 +925,8 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzerEx implements Pers @NotNull private Collection getSelectedEditors() { + ApplicationManager.getApplication().assertIsDispatchThread(); + // Editors in modal context List editors = getActiveEditors();