Skip to content

Update jetbrains extension to support versions above 2 - #22263

Closed
dima-m711 wants to merge 3 commits into
raycast:mainfrom
dima-m711:feature/jetbrains-toolbox-v3-support
Closed

dima-m711 wants to merge 3 commits into
raycast:mainfrom
dima-m711:feature/jetbrains-toolbox-v3-support

Conversation

@dima-m711

@dima-m711 dima-m711 commented Oct 18, 2025 •

Copy link
Copy Markdown
Contributor

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

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: jetbrains Issues related to the jetbrains extension platform: macOS OP is contributor The OP of the PR is a contributor of the extension labels Oct 18, 2025
@raycastbot

raycastbot commented Oct 18, 2025 •

Copy link
Copy Markdown
Collaborator

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.

@dima-m711
dima-m711 marked this pull request as ready for review October 18, 2025 18:44

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 isV2 property to the more semantic isSupportedVersion across 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 frecencySorting preference

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 NaN from 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

Edit Code Review Agent Settings | Greptile

@rachid-o

rachid-o commented Oct 19, 2025 •

Copy link
Copy Markdown

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

@pernielsentikaer

Copy link
Copy Markdown
Contributor

Closing in favor of #22265. Feel free to send me your Raycast handle if you want to be included in the contributors list 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: jetbrains Issues related to the jetbrains extension OP is contributor The OP of the PR is a contributor of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants