IDEA-344195 New Import Settings: skip the import dialog and apply the default settings when there are only old config folders of IntelliJ-based IDEs

GitOrigin-RevId: f1fe85de955e459aa68498722a867354a624e865
This commit is contained in:
Sergey Pak
2024-03-01 12:15:12 +01:00
committed by intellij-monorepo-bot
parent 31dabed292
commit 19988eb864

View File

@@ -272,12 +272,13 @@ class JbImportServiceImpl(private val coroutineScope: CoroutineScope) : JbServic
val jbProductInfo: JbProductInfo = toJbProductInfo(confDir) ?: continue
jbProductInfo.prefetchData(coroutineScope, context)
products[confDir.name] = jbProductInfo
hasDataProcessed.completeWith(Result.success(true))
if (!ConfigImportHelper.isConfigOld(jbProductInfo.lastUsageTime))
hasDataProcessed.completeWith(Result.success(true))
}
}
warmUpComplete.completeWith(Result.success(true))
if (!hasDataProcessed.isCompleted) {
hasDataProcessed.completeWith(Result.success(products.isNotEmpty()))
hasDataProcessed.completeWith(Result.success(products().isNotEmpty()))
}
}