Skip to content

Conversation

@tartarughina
Copy link
Collaborator

Improve code maintainability by adopting a unified method to retrieve the latest version from git tags.

  • Extracted into a function the code to retrieve all repository's tags and from the latest retrieve the release version

@tartarughina tartarughina added the enhancement New feature or request label Nov 2, 2025
@cla-bot cla-bot bot added the cla-signed label Nov 2, 2025
Copy link
Collaborator

@playdohface playdohface left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only question that I have is: are we sure that the jdtls-assets will always be available the moment the github release is bumped? It's a reasonable assumption that they would, but idk how these releases are rolled out.

@tartarughina
Copy link
Collaborator Author

Good point, we might want to have a fallback to the second release version available to cover instances where the release bump isn't reflected on the download website

@Arthurm1
Copy link

Arthurm1 commented Nov 3, 2025

It might be cool for the user to be able to override the required version of jdtls in the settings. In case the latest isn't compatible for some reason or the tags don't exactly match the filenames or eclipse dumps jdk8 support or...

- Extract into a function the retrival of the latest version from tags
- Clean up retrieval of latest version of JDTLS
- Multiple versions are retrieved from tags

- If first version fails downloading falls back to second one
@tartarughina tartarughina merged commit 0c67d8c into zed-extensions:main Nov 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants