Skip to content

Commit

Permalink
Update last-updated-date of extensions whenever extension is changed
Browse files Browse the repository at this point in the history
Currently, the last-updated-date is only updated when a new extension version
is published. This causes the mirror to be out-of-sync with upstream whenever
an extension version is deleted.

This commit updates the last-updated-date whenever an extension is changed,
including the scenario above.

Fixes eclipse#955.

Signed-off-by: Hoang Thuan Pham <[email protected]>
  • Loading branch information
hoangphamEclipse committed Jun 26, 2024
1 parent 0514d8b commit 7f10ccc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ public void updateExtension(Extension extension) {
extension.setActive(false);
search.removeSearchEntry(extension);
}

extension.setLastUpdatedDate(TimeUtil.getCurrentUTC());
}

/**
Expand Down

0 comments on commit 7f10ccc

Please sign in to comment.