mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Global counter does not work, because there are incremental scannings in IDEA. Incremental scanning cannot use incremented counter, because in this case incremental scanning of 5 files will invalidate thousands of other files (e.g. JDK). On the other hand, not incrementing counter is not a good idea either, because if scanning was interrupted (IDE shutdown), there is no way to process unscanned files after restart. This commit removes per-project counter. ProjectIndexingDependenciesService now tracks each individual scanning and requests "heavy" scanning on restart if either of previous scannings were not completed as successful. Note that we don't increment storage version. We use `Int` to store incomplete scanning mark. Old version number (if present) works just fine. GitOrigin-RevId: e5ac0930d3392605024bfe97508b89f9bbf2582e