Add xcode as editor (#518)

This commit is contained in:
Solomon
2025-08-19 11:42:52 +01:00
committed by GitHub
parent e5aa72e907
commit 01662fbd52
3 changed files with 6 additions and 2 deletions

View File

@@ -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()

View File

@@ -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:

View File

@@ -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, };