Run inspections after completion of general highlight pass in 201

#KT-37553 Fixed
This commit is contained in:
Vladimir Dolzhenko
2020-03-16 14:43:53 +01:00
parent 3cdcdbf6a8
commit e1ae81e0a1
3 changed files with 34 additions and 0 deletions
@@ -54,6 +54,8 @@ public class PluginStartupActivity implements StartupActivity.DumbAware {
registerAdditionalResourceBundleInTests();
}
StartupCompatKt.runActivity(project);
registerPathVariable();
initializeDiagnostics();
@@ -0,0 +1,13 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea
import com.intellij.openapi.project.Project
// BUNCH: 193
fun runActivity(project: Project) {
// nothing for 193
}
@@ -0,0 +1,19 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea
import com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl
import com.intellij.openapi.project.Project
import org.jetbrains.kotlin.idea.util.runWhenSmart
// BUNCH: 201
fun runActivity(project: Project) {
project.runWhenSmart {
val daemonCodeAnalyzer = DaemonCodeAnalyzerImpl.getInstanceEx(project) as DaemonCodeAnalyzerImpl
daemonCodeAnalyzer.runLocalInspectionPassAfterCompletionOfGeneralHighlightPass(true)
}
}