fix(desktop): resolve JetBrains IDE edition-specific app names#1315
fix(desktop): resolve JetBrains IDE edition-specific app names#1315de1mat wants to merge 1 commit into
Conversation
JetBrains IDEs with multiple editions (IntelliJ IDEA, PyCharm) have edition-specific macOS app names that vary by install method. The hardcoded single name never matches, causing "Open in" to fail. - APP_NAMES now supports arrays of candidate names tried in order - Add getAppCandidates() returning all candidates for an app - openPathInApp retries only on "app not found", re-throws other errors
📝 WalkthroughWalkthroughThis pull request refactors the external app launching mechanism to handle multiple edition variants of JetBrains IDEs. It introduces a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseded by #1317 which uses bundle IDs instead of app name candidates - a more robust approach. |
Description
JetBrains IDEs with multiple editions (IntelliJ IDEA, PyCharm) have edition-specific macOS app names that vary by install method. The hardcoded single name never matches, causing "Open in" to fail.
This adds a candidate-based resolution:
APP_NAMESsupports arrays of names tried in order, falling back only on "app not found" errors. Other errors (bad path, permissions) are thrown immediately.Related Issues
Fixes #1314
Type of Change
Testing
getAppCommandand newgetAppCandidatesfunction (103 tests pass)Summary by CodeRabbit
New Features
Bug Fixes