Add xcode as editor (#518)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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, };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user