fix(java): stop Show Usages waiting seconds on the configuration index after a change (#2011)

Usages counts clicked after a Java change waited for the configuration index to resolve every dependency's Spring metadata again (15–20 s in a Spring Boot project). The Java extension (1.8.0) now keeps each dependency JAR's metadata across rebuilds until the JAR or the classpath changes, and Show Usages shows the Java usages first, adding the configuration ones when the index takes longer.

Closes #1898
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-07 22:39:00 +08:00
1 джерело 112ed773fb
коміт d509ed6e81
9 files changed
+131 -7

No files matched your search

+1 -1
Переглянути файл
@@ -1202,7 +1202,7 @@ mod kotlin_bridge_bundle_tests {
/// Installs the app-owned JDT LS command bundle, falling back to ordinary LSP on IO failure.
pub fn usages_bundle(data_dir: &Path) -> Option<PathBuf> {
let extension = data_dir.join("java-usages-1.7.0.jar");
let extension = data_dir.join("java-usages-1.8.0.jar");
let bytes = include_bytes!("../../../java/java-usages/openidea-java-usages.jar");
if std::fs::read(&extension).is_ok_and(|old| old == bytes) {
clean_usages_bundles(data_dir, &extension);