mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
KTIJ-37427 [CRI] Improve diagnostics when CRI is disabled or uninitialized
GitOrigin-RevId: 7533b3901033153bce4e1a86456a9716357dcce3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3c36a804c6
commit
6928cfcabb
+9
-1
@@ -24,7 +24,15 @@ class CriDiagnosticAction : AnAction(), DumbAware {
|
||||
appendLine("=== Kotlin CRI Diagnostics ===")
|
||||
appendLine()
|
||||
|
||||
val dirtyModules = KotlinCompilerReferenceIndexService.getInstanceIfEnabled(project)?.dirtyModules() ?: emptySet()
|
||||
val kotlinCompilerReferenceIndexService = KotlinCompilerReferenceIndexService.getInstanceIfEnabled(project) ?: run {
|
||||
appendLine("Kotlin Compiler Reference Index is disabled")
|
||||
return@buildString
|
||||
}
|
||||
|
||||
val dirtyModules = kotlinCompilerReferenceIndexService.dirtyModules() ?: run {
|
||||
appendLine("Kotlin CRI storage is not yet initialized")
|
||||
return@buildString
|
||||
}
|
||||
|
||||
appendLine("Dirty Modules (${dirtyModules.size}):")
|
||||
if (dirtyModules.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user