From 53a9d37795e29d14ff2d5751ceca2d032f1c094a Mon Sep 17 00:00:00 2001 From: Cameron Chisholm Date: Wed, 3 Dec 2025 14:32:06 +0000 Subject: [PATCH 1/2] feat: antigrav support --- src/extension.ts | 14 ++++++++++++-- src/utils.ts | 10 +++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index b081e58..532658d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1,6 +1,6 @@ import * as vscode from "vscode"; import { updateDecorationsForEditor } from "./decorations"; -import { getThrottledFunction, isVSCode } from "./utils"; +import { getThrottledFunction, isVSCode, isAntigravity } from "./utils"; import { logError, logMessage } from "./logger"; import { getCompiledOutput } from "./checkReactCompiler"; import { generateAIPrompt } from "./prompt"; @@ -256,7 +256,17 @@ export function registerCommands( "workbench.action.chat.open", prompt ); - } else { + } else if (isAntigravity()) { + await vscode.env.clipboard.writeText(prompt); + await vscode.commands.executeCommand( + "antigravity.prioritized.chat.openNewConversation", + prompt, + ); + await vscode.window.showInformationMessage( + "Prompt copied. Press CMD+V in the chat." + ); + } + else { await vscode.env.clipboard.writeText(prompt); await vscode.commands.executeCommand( "composer.startComposerPrompt", diff --git a/src/utils.ts b/src/utils.ts index 1ce4a1e..54347e6 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -32,4 +32,12 @@ function isVSCode(): boolean { ); } -export { getThrottledFunction, isVSCode }; +function isAntigravity(): boolean { + const appName = vscode.env.appName; + + return ( + appName.includes("Antigravity") + ); +} + +export { getThrottledFunction, isVSCode, isAntigravity }; From 869e103f9b76585f3866c8dca08c288cfdbc5113 Mon Sep 17 00:00:00 2001 From: Cameron Chisholm Date: Mon, 8 Dec 2025 09:01:55 +0000 Subject: [PATCH 2/2] chore: update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 288e37e..bce0ea5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ This project follows [Semantic Versioning](https://semver.org). ## [Unreleased] ### Added -- +- Support for Google's Antigravity IDE ### Fixed -