Skip to content

fix: unify update detection for commit-based extensions#251

Merged
mcanouil merged 2 commits intomainfrom
fix/issue-37gj
Feb 8, 2026
Merged

fix: unify update detection for commit-based extensions#251
mcanouil merged 2 commits intomainfrom
fix/issue-37gj

Conversation

@mcanouil
Copy link
Copy Markdown
Owner

@mcanouil mcanouil commented Feb 8, 2026

Summary

  • Delegate update detection in the VS Code tree view to the core library's checkForUpdates(), which handles both semver and commit-based comparisons.
  • Extensions installed from a commit (no GitHub releases) now show updates when latestCommit changes in the registry.
  • Export getRegistryUrl() and getCacheTTL() from extensionDetails.ts to pass consistent settings to the core.

Fixes #231

The VS Code extension's checkUpdate() reimplemented update detection with
only semver comparison, missing commit-based updates entirely. Extensions
installed from a commit (no GitHub releases) never showed updates in the
tree view even when latestCommit changed in the registry.

Replace the manual comparison loop with a call to the core library's
checkForUpdates(), which handles both semver and commit-based updates.
Export getRegistryUrl() and getCacheTTL() from extensionDetails.ts so
the tree data provider can pass consistent settings to the core.
Move latestVersions reset after successful checkForUpdates() call so
that a network or registry failure does not clear previously known
update information from the tree view badge.
@mcanouil mcanouil self-assigned this Feb 8, 2026
@mcanouil mcanouil added the Type: Enhancement 💡 Issues related to enhancements, improvements, new features, or new analyses label Feb 8, 2026
@mcanouil mcanouil merged commit 7117daf into main Feb 8, 2026
7 checks passed
@mcanouil mcanouil deleted the fix/issue-37gj branch February 8, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement 💡 Issues related to enhancements, improvements, new features, or new analyses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update button if latest commits is not the same from source

1 participant