Don't try to schedule optimize imports on the fly in batch inspections
This commit is contained in:
@@ -122,7 +122,9 @@ class UnusedImportInspection : AbstractKotlinInspection() {
|
||||
}
|
||||
}
|
||||
|
||||
scheduleOptimizeImportsOnTheFly(file, descriptorsToImport)
|
||||
if (isOnTheFly) {
|
||||
scheduleOptimizeImportsOnTheFly(file, descriptorsToImport)
|
||||
}
|
||||
|
||||
return problems.toTypedArray()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user