Run inspections after completion of general highlight pass in 201
#KT-37553 Fixed
This commit is contained in:
@@ -54,6 +54,8 @@ public class PluginStartupActivity implements StartupActivity.DumbAware {
|
|||||||
registerAdditionalResourceBundleInTests();
|
registerAdditionalResourceBundleInTests();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StartupCompatKt.runActivity(project);
|
||||||
|
|
||||||
registerPathVariable();
|
registerPathVariable();
|
||||||
initializeDiagnostics();
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user