feat: support IntelliJ IDEA open-in launch#1673
feat: support IntelliJ IDEA open-in launch#1673juliusmarminge merged 2 commits intopingdotgg:mainfrom
Conversation
Add editor-specific launch styles for direct path, --goto, and line/column arguments. Expose IntelliJ IDEA in the open-in picker and cover the new launch behavior with server tests
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
ApprovabilityVerdict: Approved This PR adds IntelliJ IDEA as a new editor option with appropriate command-line argument handling. The changes are additive with good test coverage, and the refactor from boolean You can customize Macroscope's approvability policy. Learn more. |
juliusmarminge
left a comment
There was a problem hiding this comment.
Works. Given that idea is not installed by default and you gotta follow their guide here: https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#standalone

What Changed
IntelliJ IDEAto the “Open in” picker in the web UI.supportsGotoboolean to alaunchStylemodel so different editors can express their actual CLI behavior.direct path--goto--line/--columnAntigravity's launchStyle togoto.Why
The old editor-launch model was too limited. A single
supportsGotoflag only works for editors that accept--goto, which breaks down as soon as an editor uses a different CLI contract.This PR fixes that design flaw instead of piling on another hack:
UI Changes
IntelliJ IDEAas a new option in the “Open in” picker.Before
After
Checklist
Note
Medium Risk
Medium risk because it changes shared editor contracts and server-side argument construction for multiple editors, which could break open-in-editor behavior if CLI expectations differ across platforms.
Overview
Adds IntelliJ IDEA as a supported
EditorIdand exposes it in the web “Open in” picker (including a newIntelliJIdeaIcon).Replaces the
supportsGotoflag with alaunchStylemodel (direct-path,goto,line-column) and refactors server-sideresolveEditorLaunchto build editor-specific CLI args accordingly (including parsingpath:line:columntargets). Updates tests to cover IDEA’s--line/--columnbehavior and the new per-editor launch-style routing (includingantigravitynow using--goto).Written by Cursor Bugbot for commit 648e204. This will update automatically on new commits. Configure here.
Note
Add IntelliJ IDEA as a supported editor with
--line/--columnnavigationideato theEDITORSlist in editor.ts withlaunchStyle: 'line-column', making it a validEditorId.supportsGotofield with alaunchStylediscriminant ('direct-path','goto', or'line-column') across all editor definitions.resolveCommandEditorArgsin open.ts to build CLI args per launch style, replacing the previousshouldUseGotoFlaglogic.IntelliJIdeaIconcomponent to Icons.tsx and surfaces an IntelliJ IDEA option in the OpenInPicker.direct-path(no--goto) and all previouslysupportsGoto: trueeditors retain equivalentgotobehavior.Macroscope summarized 648e204.