GH-1143: avoid writing cache if no files have changed

This commit is contained in:
Martin Lippert
2023-11-08 15:44:49 +01:00
parent a458894ce6
commit 950d528bb9

View File

@@ -191,11 +191,12 @@ public class SpringIndexerJava implements SpringIndexer {
if (updatedDocs != null) {
DocumentDescriptor[] docs = filterDocuments(project, updatedDocs);
for (DocumentDescriptor updatedDoc : docs) {
this.symbolHandler.removeSymbols(project, updatedDoc.getDocURI());
if (docs.length > 0) {
for (DocumentDescriptor updatedDoc : docs) {
this.symbolHandler.removeSymbols(project, updatedDoc.getDocURI());
}
scanFiles(project, docs);
}
scanFiles(project, docs);
}
}