Repository navigation
Conversation
|
Thank you for your contribution! 🎉 🔔 @gdsmith @adrienbaron @PeraSite you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. You can expect an initial review within five business days. |
There was a problem hiding this comment.
Greptile Overview
Summary
This PR updates the JetBrains Toolbox extension to support version 3.x and above by refactoring the version check logic. The main changes include:
- Replaced regex-based version check (
/^2\./) with numeric major version comparison (majorVersion >= 2) - Renamed
isV2property to the more semanticisSupportedVersionacross all files - Updated user-facing error messages from "only support version 2" to "requires version 2.0 or higher"
- Auto-generated type definition updates for the
frecencySortingpreference
The version check now parses the major version number and validates it's >= 2, which correctly supports versions 2.x, 3.x, and beyond.
Confidence Score: 5/5
- This PR is safe to merge with minimal risk - it's a straightforward refactor that improves version compatibility
- The changes are well-structured, maintain backward compatibility (version 2.x still works), and the new logic is more maintainable than regex matching. The implementation correctly handles edge cases like
NaNfrom invalid version strings, and all property renames are consistently applied across the codebase. - No files require special attention
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| extensions/jetbrains/src/util.ts | 5/5 | Updated version check logic from regex matching ^2\. to numeric comparison >= 2, allowing support for version 2.x and 3.x+ |
| extensions/jetbrains/src/recent.tsx | 5/5 | Updated property name from isV2 to isSupportedVersion and improved error message clarity |
| extensions/jetbrains/src/recentMenu.tsx | 5/5 | Updated property name from isV2 to isSupportedVersion and improved error message clarity in menu bar |
| extensions/jetbrains/src/useAppHistory.tsx | 5/5 | Updated property name from isV2 to isSupportedVersion in hook logic |
5 files reviewed, no comments
|
FWIW, I concur with this change and it works on my machine. I did a similar change in my own fork. The existing code is still compatible with v3 of the JetBrains Toolbox. So only changing the check is sufficient |
|
Closing in favor of #22265. Feel free to send me your Raycast handle if you want to be included in the contributors list 😊 |
Description
update the code to check if toolbox version is 2 or above
and tested that the extension is working with toolbox version JetBrains Toolbox 3.0.0.59313, macOS 26.0.1, arm64
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool