From 0ccb1ecd0af5ab6c1fb309e506be0841f178fc7a Mon Sep 17 00:00:00 2001 From: Daniel Ehrhardt Date: Wed, 14 Jan 2026 13:13:21 +0100 Subject: [PATCH] feat: added Google Antigravity (#1726) * feat: added Google Antigravity * Update types.ts * Update IdeIcon.tsx --- crates/services/src/services/config/editor/mod.rs | 3 +++ frontend/src/components/ide/IdeIcon.tsx | 8 +++++++- shared/types.ts | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/crates/services/src/services/config/editor/mod.rs b/crates/services/src/services/config/editor/mod.rs index afa27ba4..f986fcb6 100644 --- a/crates/services/src/services/config/editor/mod.rs +++ b/crates/services/src/services/config/editor/mod.rs @@ -50,6 +50,7 @@ pub enum EditorType { IntelliJ, Zed, Xcode, + GoogleAntigravity, Custom, } @@ -88,6 +89,7 @@ impl EditorConfig { EditorType::IntelliJ => "idea", EditorType::Zed => "zed", EditorType::Xcode => "xed", + EditorType::GoogleAntigravity => "antigravity", EditorType::Custom => { // Custom editor - use user-provided command or fallback to VSCode self.custom_command.as_deref().unwrap_or("code") @@ -142,6 +144,7 @@ impl EditorConfig { EditorType::VsCode => "vscode", EditorType::Cursor => "cursor", EditorType::Windsurf => "windsurf", + EditorType::GoogleAntigravity => "antigravity", _ => return None, }; let user_part = self diff --git a/frontend/src/components/ide/IdeIcon.tsx b/frontend/src/components/ide/IdeIcon.tsx index 73abd5f8..df6f3c8e 100644 --- a/frontend/src/components/ide/IdeIcon.tsx +++ b/frontend/src/components/ide/IdeIcon.tsx @@ -33,6 +33,8 @@ export function getIdeName(editorType: EditorType | undefined | null): string { return 'Xcode'; case EditorType.CUSTOM: return 'IDE'; + case EditorType.GOOGLE_ANTIGRAVITY: + return 'Google Antigravity'; } } @@ -44,7 +46,11 @@ export function IdeIcon({ editorType, className = 'h-4 w-4' }: IdeIconProps) { const ideName = getIdeName(editorType); let ideIconPath = ''; - if (!editorType || editorType === EditorType.CUSTOM) { + if ( + !editorType || + editorType === EditorType.CUSTOM || + editorType === EditorType.GOOGLE_ANTIGRAVITY + ) { // Generic fallback for other IDEs or no IDE configured return ; } diff --git a/shared/types.ts b/shared/types.ts index a7f93c91..fa95ad98 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -380,7 +380,7 @@ export enum ThemeMode { LIGHT = "LIGHT", DARK = "DARK", SYSTEM = "SYSTEM" } export type EditorConfig = { editor_type: EditorType, custom_command: string | null, remote_ssh_host: string | null, remote_ssh_user: string | null, }; -export enum EditorType { VS_CODE = "VS_CODE", CURSOR = "CURSOR", WINDSURF = "WINDSURF", INTELLI_J = "INTELLI_J", ZED = "ZED", XCODE = "XCODE", CUSTOM = "CUSTOM" } +export enum EditorType { VS_CODE = "VS_CODE", CURSOR = "CURSOR", WINDSURF = "WINDSURF", INTELLI_J = "INTELLI_J", ZED = "ZED", XCODE = "XCODE", GOOGLE_ANTIGRAVITY = "GOOGLE_ANTIGRAVITY", CUSTOM = "CUSTOM" } export type EditorOpenError = { "type": "executable_not_found", executable: string, editor_type: EditorType, } | { "type": "invalid_command", details: string, editor_type: EditorType, } | { "type": "launch_failed", executable: string, details: string, editor_type: EditorType, };