GH-1143: avoid writing cache if no files have changed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user