From 01662fbd52c77bebce9d8e97e2e081570965d85b Mon Sep 17 00:00:00 2001 From: Solomon Date: Tue, 19 Aug 2025 11:42:52 +0100 Subject: [PATCH] Add xcode as editor (#518) --- crates/services/src/services/config/versions/v2.rs | 2 ++ frontend/src/components/tasks/Toolbar/CurrentAttempt.tsx | 4 +++- shared/types.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/services/src/services/config/versions/v2.rs b/crates/services/src/services/config/versions/v2.rs index fa6a8288..9f6eda66 100644 --- a/crates/services/src/services/config/versions/v2.rs +++ b/crates/services/src/services/config/versions/v2.rs @@ -290,6 +290,7 @@ pub enum EditorType { Windsurf, IntelliJ, Zed, + Xcode, Custom, } @@ -323,6 +324,7 @@ impl EditorConfig { EditorType::Windsurf => vec!["windsurf".to_string()], EditorType::IntelliJ => vec!["idea".to_string()], EditorType::Zed => vec!["zed".to_string()], + EditorType::Xcode => vec!["xed".to_string()], EditorType::Custom => { if let Some(custom) = &self.custom_command { custom.split_whitespace().map(|s| s.to_string()).collect() diff --git a/frontend/src/components/tasks/Toolbar/CurrentAttempt.tsx b/frontend/src/components/tasks/Toolbar/CurrentAttempt.tsx index 6e93c745..2525b934 100644 --- a/frontend/src/components/tasks/Toolbar/CurrentAttempt.tsx +++ b/frontend/src/components/tasks/Toolbar/CurrentAttempt.tsx @@ -61,10 +61,12 @@ function getEditorDisplayName(editorType: string): string { return 'Cursor'; case 'WINDSURF': return 'Windsurf'; - case 'INTELLIJ': + case 'INTELLI_J': return 'IntelliJ IDEA'; case 'ZED': return 'Zed'; + case 'XCODE': + return 'Xcode'; case 'CUSTOM': return 'Editor'; default: diff --git a/shared/types.ts b/shared/types.ts index 346232f8..7fa73357 100644 --- a/shared/types.ts +++ b/shared/types.ts @@ -74,7 +74,7 @@ export enum ThemeMode { LIGHT = "LIGHT", DARK = "DARK", SYSTEM = "SYSTEM", PURPL export type EditorConfig = { editor_type: EditorType, custom_command: string | null, }; -export enum EditorType { VS_CODE = "VS_CODE", CURSOR = "CURSOR", WINDSURF = "WINDSURF", INTELLI_J = "INTELLI_J", ZED = "ZED", CUSTOM = "CUSTOM" } +export enum EditorType { VS_CODE = "VS_CODE", CURSOR = "CURSOR", WINDSURF = "WINDSURF", INTELLI_J = "INTELLI_J", ZED = "ZED", XCODE = "XCODE", CUSTOM = "CUSTOM" } export type GitHubConfig = { pat: string | null, oauth_token: string | null, username: string | null, primary_email: string | null, default_pr_base: string | null, };