-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add support for Antigravity terminal in terminal setup utility #16051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Antigravity terminal in terminal setup utility #16051
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Summary of ChangesHello @raky291, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request extends the terminal setup utility to include support for the Antigravity IDE. By integrating Antigravity, the utility can now detect this specific VS Code fork and automatically configure its keybindings, ensuring a consistent and functional experience for users interacting with the Gemini CLI Companion extension within the Antigravity terminal. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds support for the Antigravity terminal, a fork of VS Code, to the terminal setup utility. The changes correctly follow the pattern established for other VS Code forks like Cursor and Windsurf, including detection via environment variables and parent process names, and configuration of keybindings. My review focuses on improving maintainability by refactoring duplicated detection logic. I've suggested consolidating the checks for different terminals into loops to make the code cleaner and easier to extend in the future. None of the provided rules were applicable to these comments, so they remain unchanged.
jacob314
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Hi @jacob314, I updated the branch but I don't see the option to merge it into main, would you help me? |
|
Done. Merge should happen as soon as the bots go green. |
…e-gemini#16051) Co-authored-by: Jacob Richman <jacob314@gmail.com>

Summary
This PR adds support for the Antigravity terminal in the
/terminal-setupcommandDetails
The changes include:
Detection: "Antigravity" is now detected by searching for the string "antigravity" in the environment variables (VSCODE_GIT_ASKPASS_MAIN) or in the parent process name (on non-Windows systems).
Configuration: Antigravity is a fork of VS Code and uses a similar configuration structure (Antigravity folder in the user configuration directories).
Keybindings: keybindings.json is now automatically configured to send the correct sequence (\r\n) when pressing Shift+Enter and Ctrl+Enter, just like in VS Code, Cursor, and Windsurf.
Related Issues
#15467
How to Validate
/terminal-setupPre-Merge Checklist