Skip to content

Commit

Permalink
GH-1143: avoid writing cache if no files have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlippert committed Nov 8, 2023
1 parent a458894 commit 950d528
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,12 @@ public void updateFiles(IJavaProject project, DocumentDescriptor[] updatedDocs)
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);
}
}

Expand Down

0 comments on commit 950d528

Please sign in to comment.