Skip to content

Commit 8a4eb25

Browse files
authored
run later (#183)
1 parent f8cfff0 commit 8a4eb25

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/kotlin/com/emberjs/hbs/linter/ember-template-lint/TemplateLintEnabler.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import com.intellij.lang.javascript.linter.JSLinterUtil
55
import com.intellij.notification.Notification
66
import com.intellij.notification.NotificationAction
77
import com.intellij.openapi.actionSystem.AnActionEvent
8+
import com.intellij.openapi.application.Application
9+
import com.intellij.openapi.application.ApplicationManager
810
import com.intellij.openapi.diagnostic.Logger
911
import com.intellij.openapi.module.Module
1012
import com.intellij.openapi.project.Project
@@ -21,7 +23,9 @@ import com.intellij.util.containers.ContainerUtil
2123
class TemplateLintEnabler : DirectoryProjectConfigurator {
2224
override fun configureProject(project: Project, baseDir: VirtualFile, moduleRef: Ref<Module>, newProject: Boolean) {
2325
StartupManager.getInstance(project).runWhenProjectIsInitialized {
24-
guessTemplateLint(project)
26+
ApplicationManager.getApplication().invokeLater {
27+
guessTemplateLint(project)
28+
}
2529
}
2630
}
2731

0 commit comments

Comments
 (0)